Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs") translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 101.5 kB / 15.98 MB, free: 6.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 193.7 kB / 16.91 MB, free: 6.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.788/1.788, allocations: 205.1 MB / 222.8 MB, free: 4.719 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4211/0.4211, allocations: 43.5 MB / 313.6 MB, free: 8.496 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001653/0.001653, allocations: 67.91 kB / 382.2 MB, free: 8.633 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1555/0.1571, allocations: 57.78 MB / 440 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.009862/0.1671, allocations: 5.743 MB / 445.7 MB, free: 8.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006336/0.1735, allocations: 2.264 MB / 448 MB, free: 6.703 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001901/0.1754, allocations: 35.81 kB / 448 MB, free: 6.668 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001142/0.1766, allocations: 186.6 kB / 448.2 MB, free: 6.484 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001757/0.1785, allocations: 146.8 kB / 448.4 MB, free: 6.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002047/0.1806, allocations: 395.4 kB / 448.8 MB, free: 5.953 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002162/0.1828, allocations: 1.11 MB / 449.9 MB, free: 4.836 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009714/0.1837, allocations: 0.6188 MB / 450.5 MB, free: 4.199 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004817/0.1842, allocations: 362.7 kB / 450.8 MB, free: 3.844 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003793/0.1846, allocations: 394 kB / 451.2 MB, free: 3.457 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001131/0.1848, allocations: 99.94 kB / 451.3 MB, free: 3.359 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003021/0.1851, allocations: 151.9 kB / 451.5 MB, free: 3.211 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002005/0.1853, allocations: 215.3 kB / 451.7 MB, free: 3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004075/0.1857, allocations: 473.6 kB / 452.1 MB, free: 2.535 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001574/0.1873, allocations: 1.234 MB / 453.4 MB, free: 1.297 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.288e-06/0.1873, allocations: 4 kB / 453.4 MB, free: 1.293 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.634e-06/0.1873, allocations: 0 / 453.4 MB, free: 1.293 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.495e-05/0.1873, allocations: 0 / 453.4 MB, free: 1.293 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.002138/0.1895, allocations: 1.127 MB / 454.5 MB, free: 120 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.878e-05/0.1896, allocations: 11.89 kB / 454.5 MB, free: 108 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001961/0.1898, allocations: 99.72 kB / 454.6 MB, free: 8 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2911/0.4809, allocations: 0.5639 MB / 455.2 MB, free: 48.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.377e-05/0.481, allocations: 69.28 kB / 455.2 MB, free: 48.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003208/0.4814, allocations: 88.41 kB / 455.3 MB, free: 48.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002429/0.4838, allocations: 0.8936 MB / 456.2 MB, free: 48.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.275e-05/0.4839, allocations: 2.656 kB / 456.2 MB, free: 48.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.359e-05/0.484, allocations: 41.94 kB / 456.3 MB, free: 48.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.868e-05/0.484, allocations: 21.09 kB / 456.3 MB, free: 48.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001293/0.4853, allocations: 0.5283 MB / 456.8 MB, free: 48.71 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003933/0.4893, allocations: 3.64 MB / 460.5 MB, free: 46.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005643/0.4899, allocations: 220.8 kB / 460.7 MB, free: 46.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000164/0.4901, allocations: 105.2 kB / 460.8 MB, free: 46.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003056/0.4904, allocations: 244.4 kB / 461 MB, free: 46.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.4904, allocations: 42.56 kB / 461.1 MB, free: 46.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 2.275e-06/0.4904, allocations: 0 / 461.1 MB, free: 46.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.002626/0.4931, allocations: 1.294 MB / 462.3 MB, free: 45.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.573e-05/0.4931, allocations: 54.25 kB / 462.4 MB, free: 45.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004942/0.4936, allocations: 402.1 kB / 462.8 MB, free: 44.97 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.4936, allocations: 32.42 kB / 462.8 MB, free: 44.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002782/0.4939, allocations: 472.4 kB / 463.3 MB, free: 44.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.835e-05/0.494, allocations: 139.3 kB / 463.4 MB, free: 44.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001776/0.4942, allocations: 99.55 kB / 463.5 MB, free: 44.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.4943, allocations: 362.8 kB / 463.9 MB, free: 44.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000191/0.4945, allocations: 109.9 kB / 464 MB, free: 44.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002948/0.4948, allocations: 307.8 kB / 464.3 MB, free: 43.76 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005293/0.4954, allocations: 460.7 kB / 464.7 MB, free: 43.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.4954, allocations: 2.875 kB / 464.7 MB, free: 43.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007846/0.4962, allocations: 0.5069 MB / 465.2 MB, free: 43.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.4962, allocations: 12.75 kB / 465.3 MB, free: 43.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/0.4962, allocations: 9.75 kB / 465.3 MB, free: 43.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002236/0.4965, allocations: 45.16 kB / 465.3 MB, free: 43.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003482/0.4968, allocations: 122.9 kB / 465.4 MB, free: 43.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003509/0.4972, allocations: 0.5583 MB / 466 MB, free: 42.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002275/0.4974, allocations: 18.91 kB / 466 MB, free: 42.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.873e-05/0.4975, allocations: 31.06 kB / 466 MB, free: 42.64 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003292/0.4978, allocations: 235.7 kB / 466.3 MB, free: 42.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.858e-05/0.4979, allocations: 50.53 kB / 466.3 MB, free: 42.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005956/0.4985, allocations: 325.2 kB / 466.6 MB, free: 42.28 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.4985, allocations: 2.688 kB / 466.6 MB, free: 42.28 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.4985, allocations: 7.719 kB / 466.6 MB, free: 42.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.4985, allocations: 8.547 kB / 466.7 MB, free: 42.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001479/0.5, allocations: 1.051 MB / 467.7 MB, free: 41.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.5, allocations: 2.906 kB / 467.7 MB, free: 41.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003275/0.5004, allocations: 83.48 kB / 467.8 MB, free: 41.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001286/0.5005, allocations: 33.33 kB / 467.8 MB, free: 41.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.049e-05/0.5006, allocations: 10.84 kB / 467.8 MB, free: 41.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002471/0.5008, allocations: 0.5431 MB / 468.4 MB, free: 41.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.5008, allocations: 7.062 kB / 468.4 MB, free: 41.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007175/0.5016, allocations: 0.5587 MB / 468.9 MB, free: 40.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.5017, allocations: 116.6 kB / 469.1 MB, free: 40.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.108e-05/0.5017, allocations: 10.47 kB / 469.1 MB, free: 40.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001554/0.5019, allocations: 13.84 kB / 469.1 MB, free: 40.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.415e-05/0.502, allocations: 25.42 kB / 469.1 MB, free: 40.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-05/0.502, allocations: 15.97 kB / 469.1 MB, free: 40.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003046/0.5023, allocations: 269.2 kB / 469.4 MB, free: 40.47 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5023, allocations: 3.5 kB / 469.4 MB, free: 40.47 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006306/0.5029, allocations: 125 kB / 469.5 MB, free: 40.45 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * Single equations (assignments): 32 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000179/0.5031, allocations: 122.3 kB / 469.6 MB, free: 40.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007518/0.5039, allocations: 347.3 kB / 470 MB, free: 40.24 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.5039, allocations: 3.094 kB / 470 MB, free: 40.24 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002444/0.5042, allocations: 145.5 kB / 470.1 MB, free: 40.19 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005415/0.5047, allocations: 75.56 kB / 470.2 MB, free: 40.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002916/0.5076, allocations: 2.004 MB / 472.2 MB, free: 38.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004591/0.5081, allocations: 0.9563 MB / 473.1 MB, free: 38.04 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002156/0.5083, allocations: 61.64 kB / 473.2 MB, free: 38.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.54e-05/0.5084, allocations: 43.83 kB / 473.2 MB, free: 38.01 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.5084, allocations: 0 / 473.2 MB, free: 38.01 MB / 382.1 MB Notification: Performance of Templates: time 0.01085/0.5193, allocations: 4.105 MB / 477.4 MB, free: 37.68 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches