Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.001957/0.001957, allocations: 109 kB / 20.48 MB, free: 1.492 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.002107/0.002107, allocations: 214.1 kB / 23.79 MB, free: 4.707 MB / 14.72 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 1.547/1.547, allocations: 207.6 MB / 234.6 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2122/0.2122, allocations: 44.24 MB / 331.1 MB, free: 9.531 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.002307/0.002307, allocations: 75.84 kB / 468.3 MB, free: 4.523 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.14, allocations: 61.05 MB / 0.5169 GB, free: 7.336 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004638/0.1446, allocations: 2.851 MB / 0.5197 GB, free: 4.465 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001494/0.1461, allocations: 0.7526 MB / 0.5204 GB, free: 3.703 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002441/0.1464, allocations: 11.94 kB / 0.5204 GB, free: 3.691 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001873/0.1466, allocations: 51.45 kB / 0.5205 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002727/0.1468, allocations: 130.8 kB / 0.5206 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003651/0.1472, allocations: 91.89 kB / 0.5207 GB, free: 3.422 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005377/0.1477, allocations: 437.9 kB / 0.5211 GB, free: 2.992 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002184/0.148, allocations: 106.2 kB / 0.5212 GB, free: 2.891 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003196/0.1483, allocations: 171.4 kB / 0.5214 GB, free: 2.723 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002877/0.1486, allocations: 183.1 kB / 0.5216 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.403e-05/0.1486, allocations: 40 kB / 0.5216 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.842e-05/0.1487, allocations: 32 kB / 0.5216 GB, free: 2.473 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.066e-05/0.1488, allocations: 71.77 kB / 0.5217 GB, free: 2.402 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002031/0.149, allocations: 203 kB / 0.5219 GB, free: 2.203 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005295/0.1495, allocations: 430.2 kB / 0.5223 GB, free: 1.781 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1495, allocations: 0 / 0.5223 GB, free: 1.781 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1495, allocations: 0 / 0.5223 GB, free: 1.781 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.1495, allocations: 0 / 0.5223 GB, free: 1.781 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001025/0.1505, allocations: 0.5833 MB / 0.5229 GB, free: 1.168 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.1506, allocations: 12.03 kB / 0.5229 GB, free: 1.156 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.46e-05/0.1506, allocations: 9.188 kB / 0.5229 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.857e-05/0.1507, allocations: 74.72 kB / 0.523 GB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.883e-05/0.1508, allocations: 40.7 kB / 0.523 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004377/0.1512, allocations: 218.7 kB / 0.5232 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.674e-05/0.1512, allocations: 25.38 kB / 0.5232 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.572e-05/0.1513, allocations: 52.33 kB / 0.5233 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007112/0.152, allocations: 394 kB / 0.5237 GB, free: 296 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.45e-05/0.152, allocations: 3.953 kB / 0.5237 GB, free: 292 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.504e-05/0.1521, allocations: 20 kB / 0.5237 GB, free: 272 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.1521, allocations: 12 kB / 0.5237 GB, free: 260 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004483/0.1525, allocations: 219.7 kB / 0.5239 GB, free: 40 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00259/0.1551, allocations: 1.675 MB / 0.5255 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005216/0.1557, allocations: 258.3 kB / 0.5258 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.1558, allocations: 86.08 kB / 0.5259 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.1558, allocations: 12 kB / 0.5259 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.555e-05/0.1559, allocations: 42.5 kB / 0.5259 GB, free: 13.77 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.134e-06/0.1559, allocations: 0 / 0.5259 GB, free: 13.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007119/0.1566, allocations: 261.6 kB / 0.5262 GB, free: 13.51 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/0.1567, allocations: 217.6 kB / 0.5264 GB, free: 13.25 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002809/0.157, allocations: 272.1 kB / 0.5266 GB, free: 12.98 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.766e-05/0.157, allocations: 33.7 kB / 0.5267 GB, free: 12.94 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.1572, allocations: 239.9 kB / 0.5269 GB, free: 12.7 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.1573, allocations: 127.1 kB / 0.527 GB, free: 12.58 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001327/0.1574, allocations: 98.3 kB / 0.5271 GB, free: 12.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.1576, allocations: 350.7 kB / 0.5274 GB, free: 12.12 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002191/0.1578, allocations: 101.8 kB / 0.5275 GB, free: 12.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004893/0.1583, allocations: 428.8 kB / 0.528 GB, free: 11.45 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007831/0.1591, allocations: 0.5744 MB / 0.5285 GB, free: 10.71 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.177e-06/0.1591, allocations: 4 kB / 0.5285 GB, free: 10.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001006/0.1601, allocations: 0.5284 MB / 0.529 GB, free: 10.18 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.1601, allocations: 8 kB / 0.529 GB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.51e-05/0.1602, allocations: 12 kB / 0.5291 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.797e-05/0.1602, allocations: 16 kB / 0.5291 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004641/0.1607, allocations: 152.3 kB / 0.5292 GB, free: 9.992 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.325e-05/0.1607, allocations: 15.94 kB / 0.5292 GB, free: 9.977 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003148/0.161, allocations: 75.56 kB / 0.5293 GB, free: 9.902 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.321e-05/0.161, allocations: 35.94 kB / 0.5293 GB, free: 9.867 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002203/0.1613, allocations: 177.5 kB / 0.5295 GB, free: 9.684 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.1614, allocations: 31.81 kB / 0.5295 GB, free: 9.652 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.188e-05/0.1615, allocations: 33.78 kB / 0.5296 GB, free: 9.613 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.1615, allocations: 4 kB / 0.5296 GB, free: 9.609 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.1615, allocations: 4 kB / 0.5296 GB, free: 9.605 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.1615, allocations: 3.984 kB / 0.5296 GB, free: 9.602 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001407/0.1629, allocations: 0.6232 MB / 0.5302 GB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/0.1629, allocations: 4 kB / 0.5302 GB, free: 8.918 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004575/0.1634, allocations: 87.89 kB / 0.5303 GB, free: 8.832 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.304e-06/0.1634, allocations: 4 kB / 0.5303 GB, free: 8.828 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.867e-05/0.1634, allocations: 19.86 kB / 0.5303 GB, free: 8.809 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.933e-06/0.1634, allocations: 8.062 kB / 0.5303 GB, free: 8.801 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.69e-06/0.1634, allocations: 7.938 kB / 0.5303 GB, free: 8.793 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009128/0.1644, allocations: 0.826 MB / 0.5311 GB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.645e-05/0.1644, allocations: 27.75 kB / 0.5311 GB, free: 7.914 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.859e-05/0.1645, allocations: 15.94 kB / 0.5312 GB, free: 7.898 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003515/0.1648, allocations: 11.98 kB / 0.5312 GB, free: 7.887 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.711e-05/0.1649, allocations: 27.91 kB / 0.5312 GB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.1649, allocations: 16.12 kB / 0.5312 GB, free: 7.844 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001921/0.1651, allocations: 183.1 kB / 0.5314 GB, free: 7.668 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1651, allocations: 0 / 0.5314 GB, free: 7.668 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007873/0.1659, allocations: 99.89 kB / 0.5315 GB, free: 7.57 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001288/0.1672, allocations: 1.387 MB / 0.5328 GB, free: 6.148 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006813/0.1679, allocations: 285.1 kB / 0.5331 GB, free: 5.871 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.1679, allocations: 0 / 0.5331 GB, free: 5.871 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.168, allocations: 89.27 kB / 0.5332 GB, free: 5.785 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.1691, allocations: 74.03 kB / 0.5333 GB, free: 5.711 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007601/0.1767, allocations: 4.926 MB / 0.5381 GB, free: 360 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2282/0.4049, allocations: 0.797 MB / 0.5389 GB, free: 26.94 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002422/0.4051, allocations: 42.39 kB / 0.5389 GB, free: 26.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001673/0.4053, allocations: 117.3 kB / 0.539 GB, free: 26.92 MB / 414.1 MB Notification: Performance of SimCode: time 1.483e-06/0.4053, allocations: 0 / 0.539 GB, free: 26.92 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03591/0.4412, allocations: 7.104 MB / 0.5459 GB, free: 26.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.44, allocations: 10.94 kB / 0.546 GB, free: 26.11 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.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: 15.743767859996296]