Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.0008335/0.0008335, allocations: 83.64 kB / 21.43 MB, free: 3.137 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.004243/0.004243, allocations: 164 kB / 24.7 MB, free: 9.414 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.8767/0.8767, allocations: 158.6 MB / 186.5 MB, free: 3.035 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.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 298.4 MB, free: 3.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.391e-05/1.564e-05, allocations: 2.281 kB / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003067/0.003082, allocations: 2.642 MB / 301.1 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1314/0.1345, allocations: 0.8986 MB / 302 MB, free: 13.17 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003843/0.1349, allocations: 5.781 kB / 302 MB, free: 13.17 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002313/0.1351, allocations: 61.2 kB / 302 MB, free: 13.17 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002351/0.1354, allocations: 113.4 kB / 302.1 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005464/0.1359, allocations: 224.4 kB / 302.4 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003751/0.1363, allocations: 0.5841 MB / 302.9 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.1365, allocations: 72.02 kB / 303 MB, free: 13.04 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003085/0.1368, allocations: 350.6 kB / 303.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002575/0.137, allocations: 228 kB / 303.6 MB, free: 13 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.03e-05/0.1371, allocations: 45.12 kB / 303.6 MB, free: 13 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001426/0.1372, allocations: 92.73 kB / 303.7 MB, free: 13 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.1373, allocations: 114.8 kB / 303.8 MB, free: 12.98 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000133/0.1375, allocations: 159.4 kB / 304 MB, free: 12.97 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005464/0.138, allocations: 0.5782 MB / 304.6 MB, free: 12.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.138, allocations: 0 / 304.6 MB, free: 12.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.138, allocations: 1.062 kB / 304.6 MB, free: 12.93 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.138, allocations: 10.5 kB / 304.6 MB, free: 12.93 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.0008674/0.1389, allocations: 0.6681 MB / 305.2 MB, free: 12.47 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.1389, allocations: 13.73 kB / 305.3 MB, free: 12.47 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001045/0.139, allocations: 78.31 kB / 305.3 MB, free: 12.41 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.53e-05/0.1391, allocations: 46.22 kB / 305.4 MB, free: 12.38 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003303/0.1394, allocations: 247.2 kB / 305.6 MB, free: 12.2 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.05e-05/0.1395, allocations: 28.38 kB / 305.6 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.384e-05/0.1395, allocations: 40.39 kB / 305.7 MB, free: 12.16 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005706/0.1401, allocations: 449.5 kB / 306.1 MB, free: 12 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.1401, allocations: 1.891 kB / 306.1 MB, free: 12 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.705e-05/0.1401, allocations: 13.27 kB / 306.1 MB, free: 11.99 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.1401, allocations: 11.94 kB / 306.1 MB, free: 11.98 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006056/0.1407, allocations: 464.1 kB / 306.6 MB, free: 11.86 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001378/0.1421, allocations: 1.126 MB / 307.7 MB, free: 11.22 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005354/0.1427, allocations: 354.7 kB / 308.1 MB, free: 11.08 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002792/0.1429, allocations: 233.3 kB / 308.3 MB, free: 10.99 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.143, allocations: 4.375 kB / 308.3 MB, free: 10.99 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.246e-05/0.143, allocations: 38.3 kB / 308.3 MB, free: 10.95 MB / 282.7 MB Notification: Performance of pre-optimization done (n=45): time 2.415e-06/0.143, allocations: 2.609 kB / 308.3 MB, free: 10.95 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.00298/0.146, allocations: 1.955 MB / 310.3 MB, free: 10.11 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.499e-05/0.146, allocations: 61.62 kB / 310.4 MB, free: 10.04 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/0.1461, allocations: 253.2 kB / 310.6 MB, free: 9.895 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.198e-05/0.1462, allocations: 40.94 kB / 310.6 MB, free: 9.855 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.037e-05/0.1462, allocations: 170 kB / 310.8 MB, free: 9.711 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.449e-05/0.1463, allocations: 176.7 kB / 311 MB, free: 9.578 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.1464, allocations: 101.6 kB / 311.1 MB, free: 9.523 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.136e-05/0.1465, allocations: 341.5 kB / 311.4 MB, free: 9.199 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002974/0.1468, allocations: 234.2 kB / 311.6 MB, free: 9.121 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003316/0.1471, allocations: 303.1 kB / 311.9 MB, free: 8.977 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005202/0.1476, allocations: 423.3 kB / 312.4 MB, free: 8.793 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1476, allocations: 0 / 312.4 MB, free: 8.793 MB / 282.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0009834/0.1486, allocations: 0.7489 MB / 313.1 MB, free: 8.5 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.1486, allocations: 5.5 kB / 313.1 MB, free: 8.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.1486, allocations: 5.938 kB / 313.1 MB, free: 8.496 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007179/0.1494, allocations: 0.5432 MB / 313.7 MB, free: 8.344 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.1495, allocations: 73.78 kB / 313.7 MB, free: 8.34 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/0.1509, allocations: 3.447 MB / 317.2 MB, free: 5.133 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002394/0.1512, allocations: 72.72 kB / 317.3 MB, free: 5.125 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.788e-05/0.1512, allocations: 18.53 kB / 317.3 MB, free: 5.121 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0001269/0.1513, allocations: 171.1 kB / 317.4 MB, free: 4.973 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.721e-05/0.1514, allocations: 31.66 kB / 317.5 MB, free: 4.957 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001121/0.1525, allocations: 0.7222 MB / 318.2 MB, free: 4.652 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.1525, allocations: 6.469 kB / 318.2 MB, free: 4.652 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.1525, allocations: 0.9375 kB / 318.2 MB, free: 4.652 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.1525, allocations: 4.594 kB / 318.2 MB, free: 4.652 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001789/0.1543, allocations: 1.156 MB / 319.4 MB, free: 4.051 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.1543, allocations: 0.7031 kB / 319.4 MB, free: 4.051 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001808/0.1545, allocations: 60.36 kB / 319.4 MB, free: 4.043 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007586/0.1553, allocations: 0.5258 MB / 319.9 MB, free: 3.895 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.744e-05/0.1553, allocations: 26.2 kB / 320 MB, free: 3.879 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001356/0.1566, allocations: 3.413 MB / 323.4 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1567, allocations: 0 / 323.4 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001371/0.158, allocations: 1.025 MB / 324.4 MB, free: 204 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000142/0.1582, allocations: 86.31 kB / 324.5 MB, free: 160 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.555e-05/0.1582, allocations: 14.53 kB / 324.5 MB, free: 152 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002459/0.1585, allocations: 67.67 kB / 324.6 MB, free: 144 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001988/0.1587, allocations: 100.1 kB / 324.7 MB, free: 120 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.089e-05/0.1587, allocations: 25.34 kB / 324.7 MB, free: 112 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001159/0.1588, allocations: 176.7 kB / 324.9 MB, free: 4 kB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1588, allocations: 1.844 kB / 324.9 MB, free: 4 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003849/0.1592, allocations: 124.5 kB / 325 MB, free: 0 / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001712/0.1609, allocations: 1.597 MB / 326.6 MB, free: 14.97 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00103/0.1619, allocations: 0.7684 MB / 327.4 MB, free: 14.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1619, allocations: 0 / 327.4 MB, free: 14.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005496/0.1625, allocations: 0.53 MB / 327.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003487/0.1628, allocations: 58 kB / 327.9 MB, free: 14.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005003/0.1678, allocations: 4.275 MB / 332.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001625/0.168, allocations: 195.1 kB / 332.4 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.985e-05/0.1681, allocations: 33.47 kB / 332.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.1682, allocations: 113.1 kB / 332.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of SimCode: time 9.92e-07/0.1682, allocations: 5.062 kB / 332.6 MB, free: 10.96 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0324/0.2006, allocations: 12.72 MB / 345.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.049/8.249, allocations: 8 kB / 345.3 MB, free: 14.32 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.827595519833267]