Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008687/0.0008687, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003678/0.003678, allocations: 164.6 kB / 24.69 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9024/0.9024, allocations: 158.6 MB / 186.5 MB, free: 3.027 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.273e-06/1.273e-06, allocations: 0 / 298.4 MB, free: 3.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.431e-05/1.558e-05, allocations: 2.281 kB / 298.4 MB, free: 3.5 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.1328/0.1328, allocations: 7.091 MB / 305.5 MB, free: 12.05 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003354/0.1361, allocations: 2.499 MB / 308 MB, free: 10.59 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005095/0.1367, allocations: 28.41 kB / 308.1 MB, free: 10.59 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001086/0.1377, allocations: 0.5287 MB / 308.6 MB, free: 10.33 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007828/0.1385, allocations: 0.514 MB / 309.1 MB, free: 9.949 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004029/0.1389, allocations: 246.8 kB / 309.4 MB, free: 9.797 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001192/0.1401, allocations: 1.537 MB / 310.9 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004963/0.1406, allocations: 378 kB / 311.3 MB, free: 8.723 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009352/0.1416, allocations: 0.8567 MB / 312.1 MB, free: 8.32 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004885/0.142, allocations: 439.3 kB / 312.5 MB, free: 8.164 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001537/0.1422, allocations: 138.9 kB / 312.7 MB, free: 8.164 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002699/0.1425, allocations: 174.6 kB / 312.8 MB, free: 8.156 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.1426, allocations: 288.1 kB / 313.1 MB, free: 7.941 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003591/0.143, allocations: 462.1 kB / 313.6 MB, free: 7.73 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001751/0.1447, allocations: 1.721 MB / 315.3 MB, free: 7.105 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.1447, allocations: 1.375 kB / 315.3 MB, free: 7.105 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.1447, allocations: 0 / 315.3 MB, free: 7.105 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.231e-05/0.1447, allocations: 4 kB / 315.3 MB, free: 7.102 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001862/0.1466, allocations: 1.396 MB / 316.7 MB, free: 6.18 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.927e-05/0.1467, allocations: 17.3 kB / 316.7 MB, free: 6.172 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001558/0.1468, allocations: 148.7 kB / 316.9 MB, free: 6.074 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004287/0.1472, allocations: 195.3 kB / 317.1 MB, free: 6 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009204/0.1482, allocations: 0.6814 MB / 317.7 MB, free: 5.535 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.166e-05/0.1482, allocations: 73.44 kB / 317.8 MB, free: 5.5 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.1484, allocations: 96.75 kB / 317.9 MB, free: 5.469 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/0.1496, allocations: 1.032 MB / 318.9 MB, free: 4.918 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.032e-05/0.1496, allocations: 10.14 kB / 318.9 MB, free: 4.91 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.292e-05/0.1497, allocations: 41.34 kB / 319 MB, free: 4.879 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.004e-05/0.1497, allocations: 24.41 kB / 319 MB, free: 4.879 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.1507, allocations: 0.6293 MB / 319.6 MB, free: 4.645 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00339/0.1541, allocations: 3.5 MB / 323.1 MB, free: 1.902 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005419/0.1547, allocations: 339.4 kB / 323.5 MB, free: 1.719 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004424/0.1551, allocations: 243.3 kB / 323.7 MB, free: 1.609 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.399e-05/0.1551, allocations: 6.359 kB / 323.7 MB, free: 1.609 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.494e-05/0.1552, allocations: 38.17 kB / 323.8 MB, free: 1.566 MB / 282.7 MB Notification: Performance of pre-optimization done (n=40): time 3.646e-06/0.1552, allocations: 0 / 323.8 MB, free: 1.566 MB / 282.7 MB Notification: Performance of matching and sorting (n=44): time 0.002013/0.1572, allocations: 1.26 MB / 325 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.1572, allocations: 86.98 kB / 325.1 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000953/0.1582, allocations: 0.8487 MB / 325.9 MB, free: 192 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/0.1582, allocations: 32.86 kB / 326 MB, free: 156 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000413/0.1586, allocations: 0.5637 MB / 326.5 MB, free: 15.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/0.1587, allocations: 166 kB / 326.7 MB, free: 15.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001701/0.1589, allocations: 132 kB / 326.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.159, allocations: 332.3 kB / 327.2 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002638/0.1593, allocations: 163.6 kB / 327.3 MB, free: 15.01 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004672/0.1598, allocations: 486.2 kB / 327.8 MB, free: 14.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007499/0.1605, allocations: 0.6607 MB / 328.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.1605, allocations: 3.469 kB / 328.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001013/0.1615, allocations: 0.7679 MB / 329.2 MB, free: 13.53 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.256e-05/0.1616, allocations: 10.22 kB / 329.2 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.86e-05/0.1616, allocations: 13 kB / 329.2 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002644/0.1618, allocations: 83.44 kB / 329.3 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003477/0.1622, allocations: 152.1 kB / 329.5 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002113/0.1643, allocations: 2.928 MB / 332.4 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000274/0.1646, allocations: 30.83 kB / 332.4 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.142e-05/0.1646, allocations: 34.69 kB / 332.5 MB, free: 10.53 MB / 298.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 (84): * Single equations (assignments): 82 * 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.0002712/0.1649, allocations: 261.2 kB / 332.7 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.165, allocations: 93.19 kB / 332.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007127/0.1657, allocations: 491.7 kB / 333.3 MB, free: 9.969 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.1657, allocations: 9.938 kB / 333.3 MB, free: 9.965 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.1657, allocations: 5.328 kB / 333.3 MB, free: 9.961 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.209e-06/0.1657, allocations: 0 / 333.3 MB, free: 9.961 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002164/0.1679, allocations: 1.314 MB / 334.6 MB, free: 9.008 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.1679, allocations: 1.344 kB / 334.6 MB, free: 9.008 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002098/0.1681, allocations: 69.41 kB / 334.7 MB, free: 8.992 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001491/0.1683, allocations: 69.45 kB / 334.8 MB, free: 8.953 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.013e-05/0.1683, allocations: 11.81 kB / 334.8 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001869/0.1701, allocations: 2.921 MB / 337.7 MB, free: 6.047 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.1702, allocations: 2.969 kB / 337.7 MB, free: 6.047 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009264/0.1711, allocations: 0.7702 MB / 338.5 MB, free: 5.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001721/0.1712, allocations: 123.4 kB / 338.6 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.529e-05/0.1713, allocations: 15.98 kB / 338.6 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002079/0.1715, allocations: 35.86 kB / 338.6 MB, free: 5.309 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.166e-05/0.1716, allocations: 31.94 kB / 338.7 MB, free: 5.277 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.1716, allocations: 16 kB / 338.7 MB, free: 5.262 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005096/0.1721, allocations: 0.5615 MB / 339.2 MB, free: 4.707 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1721, allocations: 0 / 339.2 MB, free: 4.707 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005335/0.1726, allocations: 207.9 kB / 339.4 MB, free: 4.504 MB / 298.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 (38): * Single equations (assignments): 36 * 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.001296/0.1739, allocations: 1.33 MB / 340.8 MB, free: 3.117 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009102/0.1749, allocations: 0.6745 MB / 341.5 MB, free: 2.418 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.145e-06/0.1749, allocations: 0 / 341.5 MB, free: 2.418 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008828/0.1757, allocations: 425 kB / 341.9 MB, free: 1.977 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007528/0.1765, allocations: 234.3 kB / 342.1 MB, free: 1.75 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009056/0.1855, allocations: 7.263 MB / 349.4 MB, free: 10.04 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000357/0.1859, allocations: 418 kB / 349.8 MB, free: 9.605 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000333/0.1862, allocations: 111.2 kB / 349.9 MB, free: 9.492 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003525/0.1866, allocations: 380.3 kB / 350.2 MB, free: 9.121 MB / 314.7 MB Notification: Performance of SimCode: time 2.194e-06/0.1866, allocations: 0 / 350.2 MB, free: 9.121 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04278/0.2294, allocations: 20.95 MB / 371.2 MB, free: 4.105 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.643/7.872, allocations: 15.89 kB / 371.2 MB, free: 4.09 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.349333099089563]