Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00111/0.00111, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001109/0.001109, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9226/0.9226, allocations: 177 MB / 204.1 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.338e-05/1.47e-05, allocations: 2.984 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.00621/0.006224, allocations: 7.287 MB / 331.8 MB, free: 8.559 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003724/0.009948, allocations: 2.571 MB / 334.4 MB, free: 5.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004688/0.01042, allocations: 27.88 kB / 334.4 MB, free: 5.953 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009291/0.01135, allocations: 0.5285 MB / 334.9 MB, free: 5.422 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006229/0.01197, allocations: 0.5271 MB / 335.5 MB, free: 4.891 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003312/0.0123, allocations: 275.6 kB / 335.7 MB, free: 4.621 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008825/0.01318, allocations: 1.579 MB / 337.3 MB, free: 3.035 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004033/0.01359, allocations: 371.3 kB / 337.7 MB, free: 2.652 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006737/0.01426, allocations: 0.8768 MB / 338.6 MB, free: 1.773 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003636/0.01462, allocations: 450.6 kB / 339 MB, free: 1.332 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001032/0.01473, allocations: 144 kB / 339.1 MB, free: 1.188 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001866/0.01491, allocations: 187.8 kB / 339.3 MB, free: 1.004 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001277/0.01504, allocations: 286.9 kB / 339.6 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002741/0.01531, allocations: 474.8 kB / 340.1 MB, free: 264 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001405/0.01672, allocations: 1.764 MB / 341.8 MB, free: 14.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.01672, allocations: 0 / 341.8 MB, free: 14.49 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.01672, allocations: 4 kB / 341.8 MB, free: 14.48 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.01674, allocations: 0 / 341.8 MB, free: 14.48 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001462/0.0182, allocations: 1.427 MB / 343.3 MB, free: 13.02 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.01824, allocations: 15.98 kB / 343.3 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001234/0.01836, allocations: 152.4 kB / 343.4 MB, free: 12.85 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004036/0.01877, allocations: 204 kB / 343.6 MB, free: 12.65 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007977/0.01956, allocations: 0.6891 MB / 344.3 MB, free: 11.93 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.711e-05/0.0196, allocations: 74 kB / 344.4 MB, free: 11.86 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.542e-05/0.01969, allocations: 99.95 kB / 344.5 MB, free: 11.77 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009886/0.02068, allocations: 1.047 MB / 345.5 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.238e-05/0.0207, allocations: 0 / 345.5 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.033e-05/0.02075, allocations: 40 kB / 345.6 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.02076, allocations: 27.94 kB / 345.6 MB, free: 10.6 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007723/0.02154, allocations: 0.6481 MB / 346.2 MB, free: 9.953 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00319/0.02473, allocations: 3.532 MB / 349.8 MB, free: 6.207 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004504/0.02518, allocations: 354.3 kB / 350.1 MB, free: 5.855 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003463/0.02552, allocations: 256.7 kB / 350.4 MB, free: 5.602 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.736e-05/0.02555, allocations: 4 kB / 350.4 MB, free: 5.598 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.13e-05/0.02557, allocations: 42.5 kB / 350.4 MB, free: 5.547 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 1.192e-06/0.02557, allocations: 0 / 350.4 MB, free: 5.547 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.001777/0.02735, allocations: 1.328 MB / 351.7 MB, free: 4.18 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.604e-05/0.0274, allocations: 89.05 kB / 351.8 MB, free: 4.074 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007363/0.02813, allocations: 0.8566 MB / 352.7 MB, free: 3.207 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.02816, allocations: 37.7 kB / 352.7 MB, free: 3.164 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002672/0.02842, allocations: 0.5813 MB / 353.3 MB, free: 2.574 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.897e-05/0.0285, allocations: 170.6 kB / 353.5 MB, free: 2.406 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.02861, allocations: 130.6 kB / 353.6 MB, free: 2.273 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.31e-05/0.02869, allocations: 334 kB / 353.9 MB, free: 1.941 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002103/0.0289, allocations: 177.9 kB / 354.1 MB, free: 1.766 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003256/0.02923, allocations: 0.4895 MB / 354.6 MB, free: 1.133 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007765/0.03001, allocations: 0.6797 MB / 355.3 MB, free: 328 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.03001, allocations: 0 / 355.3 MB, free: 328 kB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008736/0.03088, allocations: 0.7914 MB / 356.1 MB, free: 15.52 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.0309, allocations: 12 kB / 356.1 MB, free: 15.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.03092, allocations: 8 kB / 356.1 MB, free: 15.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001925/0.03111, allocations: 77.69 kB / 356.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002716/0.03138, allocations: 155.7 kB / 356.3 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001498/0.03288, allocations: 2.927 MB / 359.2 MB, free: 12.1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00027/0.03315, allocations: 40.2 kB / 359.3 MB, free: 12.06 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.151e-05/0.03318, allocations: 36 kB / 359.3 MB, free: 12.03 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002465/0.03343, allocations: 261.5 kB / 359.6 MB, free: 11.76 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.31e-05/0.0335, allocations: 99.33 kB / 359.7 MB, free: 11.66 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005724/0.03407, allocations: 0.5031 MB / 360.2 MB, free: 11.15 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.03407, allocations: 4 kB / 360.2 MB, free: 11.14 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.03408, allocations: 4 kB / 360.2 MB, free: 11.14 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.03408, allocations: 3.984 kB / 360.2 MB, free: 11.14 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001296/0.03538, allocations: 1.329 MB / 361.5 MB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.03538, allocations: 4.125 kB / 361.5 MB, free: 9.727 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001648/0.03555, allocations: 79.83 kB / 361.6 MB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001162/0.03566, allocations: 73.89 kB / 361.7 MB, free: 9.57 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.856e-05/0.03569, allocations: 12 kB / 361.7 MB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001511/0.0372, allocations: 2.908 MB / 364.6 MB, free: 6.422 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.0372, allocations: 0 / 364.6 MB, free: 6.422 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008167/0.03802, allocations: 0.7986 MB / 365.4 MB, free: 5.578 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001576/0.03818, allocations: 123.5 kB / 365.5 MB, free: 5.457 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.306e-05/0.03823, allocations: 19.98 kB / 365.5 MB, free: 5.438 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002032/0.03843, allocations: 23.98 kB / 365.5 MB, free: 5.414 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.995e-05/0.03849, allocations: 39.88 kB / 365.6 MB, free: 5.375 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.03851, allocations: 16 kB / 365.6 MB, free: 5.359 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000479/0.03899, allocations: 0.581 MB / 366.2 MB, free: 4.781 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03899, allocations: 0 / 366.2 MB, free: 4.781 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004735/0.03946, allocations: 207.9 kB / 366.4 MB, free: 4.578 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001041/0.0405, allocations: 1.37 MB / 367.8 MB, free: 3.156 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007182/0.04122, allocations: 0.6746 MB / 368.4 MB, free: 2.457 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.04122, allocations: 0 / 368.4 MB, free: 2.457 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003626/0.04158, allocations: 449.2 kB / 368.9 MB, free: 1.992 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006468/0.04223, allocations: 238.2 kB / 369.1 MB, free: 1.766 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008198/0.05043, allocations: 7.434 MB / 376.5 MB, free: 9.887 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.05071, allocations: 430.7 kB / 377 MB, free: 9.434 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002644/0.05097, allocations: 103.3 kB / 377.1 MB, free: 9.328 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003052/0.05128, allocations: 388.4 kB / 377.4 MB, free: 8.949 MB / 346.7 MB Notification: Performance of SimCode: time 1.012e-06/0.05128, allocations: 0 / 377.4 MB, free: 8.949 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04067/0.09195, allocations: 21.36 MB / 398.8 MB, free: 3.863 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.888/7.98, allocations: 11.89 kB / 398.8 MB, free: 3.852 MB / 362.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 10.605799524113536]