Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 110 kB / 18.45 MB, free: 4.602 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.001095/0.001095, allocations: 182.3 kB / 19.38 MB, free: 3.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.284/1.284, allocations: 222.9 MB / 243.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1992/0.1992, allocations: 44.18 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 63.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3213/0.3227, allocations: 60.83 MB / 0.5195 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.006442/0.3292, allocations: 5.755 MB / 0.5252 GB, free: 15.49 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004738/0.334, allocations: 2.297 MB / 0.5274 GB, free: 13.81 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00127/0.3353, allocations: 36.56 kB / 0.5274 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007432/0.3361, allocations: 228.2 kB / 0.5277 GB, free: 13.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007476/0.3369, allocations: 177.6 kB / 0.5278 GB, free: 13.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001303/0.3382, allocations: 460.8 kB / 0.5283 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001421/0.3396, allocations: 1.111 MB / 0.5294 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008583/0.3405, allocations: 0.6121 MB / 0.53 GB, free: 12.26 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005808/0.3411, allocations: 375.5 kB / 0.5303 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004282/0.3415, allocations: 388.7 kB / 0.5307 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001325/0.3417, allocations: 95.19 kB / 0.5308 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003158/0.342, allocations: 157.3 kB / 0.5309 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002076/0.3422, allocations: 215.3 kB / 0.5311 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004059/0.3426, allocations: 467 kB / 0.5316 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001338/0.344, allocations: 1.275 MB / 0.5328 GB, free: 10.24 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.344, allocations: 0 / 0.5328 GB, free: 10.24 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.344, allocations: 0 / 0.5328 GB, free: 10.24 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.632e-05/0.344, allocations: 1.25 kB / 0.5328 GB, free: 10.24 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001628/0.3456, allocations: 1.129 MB / 0.5339 GB, free: 9.332 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.3457, allocations: 13.31 kB / 0.5339 GB, free: 9.328 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001644/0.3459, allocations: 102.1 kB / 0.534 GB, free: 9.277 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00089/0.3468, allocations: 0.5899 MB / 0.5346 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.961e-05/0.3468, allocations: 66.41 kB / 0.5347 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.347, allocations: 102.7 kB / 0.5348 GB, free: 8.695 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/0.3484, allocations: 0.8809 MB / 0.5356 GB, free: 8.098 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.524e-05/0.3485, allocations: 15.64 kB / 0.5356 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.724e-05/0.3485, allocations: 40.61 kB / 0.5357 GB, free: 8.055 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.438e-05/0.3486, allocations: 23.47 kB / 0.5357 GB, free: 8.055 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009672/0.3495, allocations: 0.5232 MB / 0.5362 GB, free: 7.801 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003847/0.3534, allocations: 3.602 MB / 0.5397 GB, free: 4.617 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006101/0.354, allocations: 224 kB / 0.5399 GB, free: 4.496 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001884/0.3542, allocations: 100.1 kB / 0.54 GB, free: 4.445 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000268/0.3545, allocations: 249.7 kB / 0.5403 GB, free: 4.156 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.738e-05/0.3546, allocations: 36.16 kB / 0.5403 GB, free: 4.113 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 4.508e-06/0.3546, allocations: 0 / 0.5403 GB, free: 4.113 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.00279/0.3574, allocations: 1.302 MB / 0.5416 GB, free: 3.16 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.82e-05/0.3574, allocations: 58.78 kB / 0.5416 GB, free: 3.094 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005599/0.358, allocations: 399 kB / 0.542 GB, free: 2.852 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.346e-05/0.358, allocations: 30.73 kB / 0.5421 GB, free: 2.816 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002873/0.3583, allocations: 468.6 kB / 0.5425 GB, free: 2.402 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.3584, allocations: 134.8 kB / 0.5426 GB, free: 2.285 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001304/0.3586, allocations: 96.53 kB / 0.5427 GB, free: 2.219 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.3587, allocations: 366.1 kB / 0.5431 GB, free: 1.863 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002022/0.3589, allocations: 113.3 kB / 0.5432 GB, free: 1.812 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003278/0.3593, allocations: 312.4 kB / 0.5435 GB, free: 1.504 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005978/0.3599, allocations: 463 kB / 0.5439 GB, free: 1.113 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3599, allocations: 1 kB / 0.5439 GB, free: 1.113 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008429/0.3607, allocations: 0.5075 MB / 0.5444 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.3608, allocations: 6.938 kB / 0.5444 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.3608, allocations: 7.125 kB / 0.5444 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002289/0.361, allocations: 44.81 kB / 0.5445 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003865/0.3614, allocations: 125.4 kB / 0.5446 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000426/0.3619, allocations: 0.5629 MB / 0.5451 GB, free: 248 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002427/0.3621, allocations: 17.91 kB / 0.5452 GB, free: 240 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.353e-05/0.3622, allocations: 24.47 kB / 0.5452 GB, free: 236 kB / 398.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.0003366/0.3625, allocations: 231 kB / 0.5454 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.265e-05/0.3626, allocations: 49.81 kB / 0.5454 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006724/0.3633, allocations: 343.4 kB / 0.5458 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.3633, allocations: 3.938 kB / 0.5458 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3633, allocations: 0 / 0.5458 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3633, allocations: 0 / 0.5458 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001515/0.3648, allocations: 1.053 MB / 0.5468 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.197e-06/0.3649, allocations: 1.906 kB / 0.5468 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003341/0.3652, allocations: 77.88 kB / 0.5469 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001554/0.3654, allocations: 32.62 kB / 0.5469 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.784e-05/0.3654, allocations: 16.7 kB / 0.5469 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003699/0.3658, allocations: 0.5567 MB / 0.5475 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3658, allocations: 2.344 kB / 0.5475 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008413/0.3666, allocations: 0.5529 MB / 0.548 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001847/0.3668, allocations: 116.5 kB / 0.5481 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.851e-05/0.3669, allocations: 12 kB / 0.5481 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.3671, allocations: 8 kB / 0.5481 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.847e-05/0.3671, allocations: 31.91 kB / 0.5482 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-05/0.3672, allocations: 12 kB / 0.5482 GB, free: 13.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002933/0.3675, allocations: 267.1 kB / 0.5484 GB, free: 13.51 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3675, allocations: 0 / 0.5484 GB, free: 13.51 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006669/0.3681, allocations: 128 kB / 0.5486 GB, free: 13.39 MB / 414.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.0001823/0.3683, allocations: 121.1 kB / 0.5487 GB, free: 13.26 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007538/0.3691, allocations: 335.4 kB / 0.549 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3691, allocations: 1.688 kB / 0.549 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002553/0.3694, allocations: 135.8 kB / 0.5491 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005497/0.3699, allocations: 74.25 kB / 0.5492 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002829/0.3728, allocations: 1.655 MB / 0.5508 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006271/0.3734, allocations: 0.96 MB / 0.5518 GB, free: 10.03 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.3735, allocations: 47.42 kB / 0.5518 GB, free: 9.984 MB / 414.1 MB Notification: Performance of SimCode: time 3.296e-06/0.3736, allocations: 0 / 0.5518 GB, free: 9.984 MB / 414.1 MB Notification: Performance of Templates: time 0.01579/0.3894, allocations: 11.2 MB / 0.5627 GB, free: 14.79 MB / 430.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches