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: "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 206.3 kB / 16.79 MB, free: 6.84 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.297/1.297, allocations: 205.1 MB / 222.6 MB, free: 5.02 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.2752/0.2752, allocations: 43.5 MB / 313.5 MB, free: 8.617 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.001386/0.001386, allocations: 67.89 kB / 382.1 MB, free: 8.934 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08521/0.08661, allocations: 57.79 MB / 439.9 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.005231/0.09186, allocations: 5.735 MB / 445.6 MB, free: 9.277 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002463/0.09433, allocations: 2.299 MB / 447.9 MB, free: 6.969 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003018/0.09466, allocations: 35.81 kB / 448 MB, free: 6.934 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003277/0.09499, allocations: 182.6 kB / 448.2 MB, free: 6.754 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002449/0.09524, allocations: 146.8 kB / 448.3 MB, free: 6.609 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005911/0.09584, allocations: 387.4 kB / 448.7 MB, free: 6.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006942/0.09655, allocations: 1.044 MB / 449.7 MB, free: 5.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005558/0.09711, allocations: 0.5597 MB / 450.3 MB, free: 4.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002439/0.09736, allocations: 318.7 kB / 450.6 MB, free: 4.289 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002493/0.09762, allocations: 370 kB / 451 MB, free: 3.926 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.952e-05/0.0977, allocations: 55.94 kB / 451 MB, free: 3.871 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000162/0.09786, allocations: 108 kB / 451.1 MB, free: 3.766 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.09799, allocations: 179.3 kB / 451.3 MB, free: 3.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002663/0.09826, allocations: 425.6 kB / 451.7 MB, free: 3.172 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007138/0.09898, allocations: 1.156 MB / 452.9 MB, free: 2.012 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.053e-06/0.09899, allocations: 0 / 452.9 MB, free: 2.012 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.71e-07/0.099, allocations: 0 / 452.9 MB, free: 2.012 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.428e-06/0.09901, allocations: 0 / 452.9 MB, free: 2.012 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.0011/0.1001, allocations: 1.138 MB / 454 MB, free: 0.8242 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.453e-05/0.1001, allocations: 8.031 kB / 454 MB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001112/0.1003, allocations: 135.9 kB / 454.1 MB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.1004, allocations: 103.7 kB / 454.2 MB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1467/0.2471, allocations: 0.5639 MB / 454.8 MB, free: 49.22 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.191e-05/0.2472, allocations: 63.75 kB / 454.9 MB, free: 49.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001742/0.2474, allocations: 94.33 kB / 455 MB, free: 49.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.2488, allocations: 0.8939 MB / 455.9 MB, free: 49.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.078e-05/0.2489, allocations: 6.625 kB / 455.9 MB, free: 49.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.598e-05/0.2489, allocations: 41.09 kB / 455.9 MB, free: 49.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.249, allocations: 21.41 kB / 455.9 MB, free: 49.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007795/0.2497, allocations: 0.533 MB / 456.5 MB, free: 49.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00236/0.2521, allocations: 3.64 MB / 460.1 MB, free: 46.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004031/0.2525, allocations: 222.5 kB / 460.3 MB, free: 46.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001368/0.2527, allocations: 106.5 kB / 460.4 MB, free: 46.78 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001605/0.2528, allocations: 243.8 kB / 460.7 MB, free: 46.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.194e-05/0.2529, allocations: 45.34 kB / 460.7 MB, free: 46.45 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 1.673e-06/0.2529, allocations: 0 / 460.7 MB, free: 46.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.001675/0.2545, allocations: 1.308 MB / 462 MB, free: 45.58 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.914e-05/0.2546, allocations: 58.12 kB / 462.1 MB, free: 45.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002873/0.2549, allocations: 400.3 kB / 462.5 MB, free: 45.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.2549, allocations: 36.36 kB / 462.5 MB, free: 45.28 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.255, allocations: 463.4 kB / 462.9 MB, free: 44.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.574e-05/0.2551, allocations: 135.5 kB / 463.1 MB, free: 44.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.379e-05/0.2552, allocations: 104.1 kB / 463.2 MB, free: 44.76 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.699e-05/0.2553, allocations: 353.3 kB / 463.5 MB, free: 44.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/0.2554, allocations: 115.1 kB / 463.6 MB, free: 44.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000211/0.2556, allocations: 310.5 kB / 463.9 MB, free: 44.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003864/0.256, allocations: 462 kB / 464.4 MB, free: 43.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2561, allocations: 2.875 kB / 464.4 MB, free: 43.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0005705/0.2566, allocations: 0.5016 MB / 464.9 MB, free: 43.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.2566, allocations: 8.5 kB / 464.9 MB, free: 43.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.2567, allocations: 8.891 kB / 464.9 MB, free: 43.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001459/0.2568, allocations: 44.34 kB / 465 MB, free: 43.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003016/0.2571, allocations: 125.4 kB / 465.1 MB, free: 43.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002178/0.2574, allocations: 0.5705 MB / 465.6 MB, free: 43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001738/0.2575, allocations: 16.31 kB / 465.7 MB, free: 43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.994e-05/0.2576, allocations: 27.09 kB / 465.7 MB, free: 42.99 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.0001896/0.2578, allocations: 239.1 kB / 465.9 MB, free: 42.81 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.252e-05/0.2578, allocations: 45.28 kB / 466 MB, free: 42.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004586/0.2583, allocations: 326.6 kB / 466.3 MB, free: 42.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.2583, allocations: 5.312 kB / 466.3 MB, free: 42.63 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.2583, allocations: 0 / 466.3 MB, free: 42.63 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.2583, allocations: 3.328 kB / 466.3 MB, free: 42.63 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009943/0.2593, allocations: 1.058 MB / 467.4 MB, free: 42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.2593, allocations: 7.031 kB / 467.4 MB, free: 42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002972/0.2596, allocations: 75.06 kB / 467.4 MB, free: 41.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.761e-05/0.2597, allocations: 40.88 kB / 467.5 MB, free: 41.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.976e-05/0.2598, allocations: 10.06 kB / 467.5 MB, free: 41.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001843/0.26, allocations: 0.5538 MB / 468 MB, free: 41.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.26, allocations: 3.062 kB / 468 MB, free: 41.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005527/0.2605, allocations: 0.553 MB / 468.6 MB, free: 41.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.727e-05/0.2606, allocations: 113.6 kB / 468.7 MB, free: 40.96 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.357e-05/0.2606, allocations: 10.25 kB / 468.7 MB, free: 40.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001414/0.2608, allocations: 13.91 kB / 468.7 MB, free: 40.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.859e-05/0.2608, allocations: 30.56 kB / 468.8 MB, free: 40.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.2609, allocations: 16.89 kB / 468.8 MB, free: 40.94 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001887/0.2611, allocations: 268.4 kB / 469 MB, free: 40.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2611, allocations: 0 / 469 MB, free: 40.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004222/0.2615, allocations: 127.5 kB / 469.2 MB, free: 40.79 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.0007288/0.2622, allocations: 1.107 MB / 470.3 MB, free: 39.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004592/0.2627, allocations: 329.3 kB / 470.6 MB, free: 39.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2627, allocations: 1.688 kB / 470.6 MB, free: 39.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002109/0.2629, allocations: 146.6 kB / 470.7 MB, free: 39.76 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004398/0.2634, allocations: 71.48 kB / 470.8 MB, free: 39.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004436/0.2678, allocations: 5.26 MB / 476.1 MB, free: 36.01 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.2681, allocations: 0.9568 MB / 477 MB, free: 35.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001566/0.2683, allocations: 60.67 kB / 477.1 MB, free: 35.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002285/0.2685, allocations: 297.6 kB / 477.4 MB, free: 35.05 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2685, allocations: 0 / 477.4 MB, free: 35.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.573/1.842, allocations: 8.81 MB / 486.2 MB, free: 34.09 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001467/1.842, allocations: 229 kB / 486.4 MB, free: 33.83 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.372/4.214, allocations: 1.375 kB / 486.4 MB, free: 33.83 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins1/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