Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.001379/0.001379, allocations: 121 kB / 18.5 MB, free: 4.562 MB / 14.72 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.001568/0.001568, allocations: 213.5 kB / 21.45 MB, free: 1.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.624/1.624, allocations: 230.6 MB / 254.8 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2349/0.2349, allocations: 44.91 MB / 355.8 MB, free: 12.36 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002333/0.002333, allocations: 63.91 kB / 0.4885 GB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1491, allocations: 65.42 MB / 0.5524 GB, free: 10.16 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.004196/0.1533, allocations: 1.926 MB / 0.5543 GB, free: 8.227 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.1547, allocations: 0.5688 MB / 0.5549 GB, free: 7.652 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002137/0.1549, allocations: 3.938 kB / 0.5549 GB, free: 7.648 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.1551, allocations: 23.73 kB / 0.5549 GB, free: 7.625 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001616/0.1552, allocations: 51.61 kB / 0.5549 GB, free: 7.574 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003153/0.1555, allocations: 43.89 kB / 0.555 GB, free: 7.531 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002977/0.1558, allocations: 147.3 kB / 0.5551 GB, free: 7.387 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001988/0.156, allocations: 53.92 kB / 0.5552 GB, free: 7.332 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002555/0.1563, allocations: 67.72 kB / 0.5552 GB, free: 7.266 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001526/0.1564, allocations: 67.69 kB / 0.5553 GB, free: 7.199 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.985e-05/0.1565, allocations: 12 kB / 0.5553 GB, free: 7.188 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.663e-05/0.1566, allocations: 16 kB / 0.5553 GB, free: 7.172 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.634e-05/0.1566, allocations: 27.92 kB / 0.5553 GB, free: 7.145 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 9.177e-05/0.1567, allocations: 75.59 kB / 0.5554 GB, free: 7.07 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003214/0.157, allocations: 159.3 kB / 0.5556 GB, free: 6.914 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.157, allocations: 0 / 0.5556 GB, free: 6.914 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.157, allocations: 0 / 0.5556 GB, free: 6.914 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.157, allocations: 3.938 kB / 0.5556 GB, free: 6.91 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007872/0.1578, allocations: 438.8 kB / 0.556 GB, free: 6.434 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.1579, allocations: 8.031 kB / 0.556 GB, free: 6.426 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.997e-05/0.1579, allocations: 4.188 kB / 0.556 GB, free: 6.422 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.056e-05/0.1579, allocations: 50.73 kB / 0.5561 GB, free: 6.363 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001738/0.1581, allocations: 24.83 kB / 0.5561 GB, free: 6.34 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000471/0.1586, allocations: 212.2 kB / 0.5563 GB, free: 6.094 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/0.1586, allocations: 8.375 kB / 0.5563 GB, free: 6.086 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.925e-05/0.1587, allocations: 20.08 kB / 0.5563 GB, free: 6.066 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003361/0.159, allocations: 121.6 kB / 0.5564 GB, free: 5.941 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.159, allocations: 0 / 0.5564 GB, free: 5.941 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/0.159, allocations: 4 kB / 0.5564 GB, free: 5.938 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.375e-06/0.159, allocations: 8 kB / 0.5564 GB, free: 5.93 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002149/0.1593, allocations: 87.92 kB / 0.5565 GB, free: 5.844 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008743/0.1601, allocations: 472.2 kB / 0.557 GB, free: 5.332 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000265/0.1604, allocations: 114.5 kB / 0.5571 GB, free: 5.211 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001276/0.1605, allocations: 56.78 kB / 0.5571 GB, free: 5.152 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.1605, allocations: 0 / 0.5571 GB, free: 5.152 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/0.1606, allocations: 38.5 kB / 0.5572 GB, free: 5.105 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.402e-06/0.1606, allocations: 0 / 0.5572 GB, free: 5.105 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001816/0.1624, allocations: 0.8102 MB / 0.558 GB, free: 4.203 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.732e-05/0.1625, allocations: 59.39 kB / 0.558 GB, free: 4.133 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001623/0.1626, allocations: 140.9 kB / 0.5582 GB, free: 3.988 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.1626, allocations: 33.7 kB / 0.5582 GB, free: 3.949 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.885e-05/0.1627, allocations: 108.4 kB / 0.5583 GB, free: 3.836 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.683e-05/0.1628, allocations: 75.38 kB / 0.5584 GB, free: 3.762 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.732e-05/0.1629, allocations: 37.66 kB / 0.5584 GB, free: 3.719 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.1631, allocations: 326.8 kB / 0.5587 GB, free: 3.391 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.1632, allocations: 43.97 kB / 0.5587 GB, free: 3.348 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001413/0.1633, allocations: 84.59 kB / 0.5588 GB, free: 3.254 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002524/0.1636, allocations: 127.4 kB / 0.559 GB, free: 3.117 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1636, allocations: 0 / 0.559 GB, free: 3.117 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004659/0.164, allocations: 210.2 kB / 0.5592 GB, free: 2.902 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.1641, allocations: 4 kB / 0.5592 GB, free: 2.898 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.1641, allocations: 4 kB / 0.5592 GB, free: 2.895 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001986/0.1643, allocations: 40.83 kB / 0.5592 GB, free: 2.852 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001903/0.1645, allocations: 36.02 kB / 0.5592 GB, free: 2.816 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002002/0.1665, allocations: 1.733 MB / 0.5609 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.1666, allocations: 15.86 kB / 0.5609 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.1666, allocations: 8 kB / 0.5609 GB, free: 0.918 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001672/0.1668, allocations: 129.8 kB / 0.5611 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.736e-05/0.1668, allocations: 15.91 kB / 0.5611 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.093e-05/0.1669, allocations: 25.12 kB / 0.5611 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.1669, allocations: 4.062 kB / 0.5611 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.1669, allocations: 0 / 0.5611 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.1669, allocations: 7.984 kB / 0.5611 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009444/0.1678, allocations: 0.5446 MB / 0.5617 GB, free: 132 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.1678, allocations: 0 / 0.5617 GB, free: 132 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001797/0.168, allocations: 35.95 kB / 0.5617 GB, free: 96 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001408/0.1681, allocations: 36.83 kB / 0.5617 GB, free: 56 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.1682, allocations: 4 kB / 0.5617 GB, free: 52 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001505/0.1697, allocations: 1.469 MB / 0.5632 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1697, allocations: 0 / 0.5632 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006142/0.1703, allocations: 357 kB / 0.5635 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.593e-05/0.1704, allocations: 93.03 kB / 0.5636 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.1704, allocations: 0 / 0.5636 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.1705, allocations: 11.94 kB / 0.5636 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.386e-05/0.1706, allocations: 12.12 kB / 0.5636 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-05/0.1706, allocations: 11.98 kB / 0.5636 GB, free: 13.92 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001056/0.1707, allocations: 108.6 kB / 0.5637 GB, free: 13.82 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1707, allocations: 3.938 kB / 0.5637 GB, free: 13.81 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003977/0.1711, allocations: 44 kB / 0.5638 GB, free: 13.77 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009969/0.1721, allocations: 0.8729 MB / 0.5646 GB, free: 12.87 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006519/0.1727, allocations: 253.1 kB / 0.5649 GB, free: 12.61 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1727, allocations: 3.938 kB / 0.5649 GB, free: 12.61 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003062/0.173, allocations: 196.9 kB / 0.5651 GB, free: 12.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004068/0.1735, allocations: 19.98 kB / 0.5651 GB, free: 12.38 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003171/0.1766, allocations: 2.062 MB / 0.5671 GB, free: 10.22 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004442/0.1771, allocations: 0.7282 MB / 0.5678 GB, free: 9.461 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.568e-05/0.1771, allocations: 13.42 kB / 0.5678 GB, free: 9.449 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.969e-05/0.1772, allocations: 43.36 kB / 0.5679 GB, free: 9.406 MB / 430.1 MB Notification: Performance of SimCode: time 1.002e-06/0.1772, allocations: 0 / 0.5679 GB, free: 9.406 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02952/0.2068, allocations: 3.523 MB / 0.5713 GB, free: 6.043 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.22, allocations: 10.19 kB / 0.5713 GB, free: 6.035 MB / 430.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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: 14.62028440303402]