Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.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="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.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="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001486/0.001487, allocations: 110.9 kB / 18.41 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001385/0.001385, allocations: 200.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 247.5 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002053/0.002053, allocations: 57.67 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1375, allocations: 50.53 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.01101/0.1486, allocations: 5.442 MB / 364.3 MB, free: 7.887 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005801/0.1544, allocations: 2.145 MB / 366.5 MB, free: 5.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009199/0.1554, allocations: 39.75 kB / 366.5 MB, free: 5.691 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008621/0.1563, allocations: 198.3 kB / 366.7 MB, free: 5.496 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007949/0.1572, allocations: 178.4 kB / 366.9 MB, free: 5.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001369/0.1585, allocations: 399 kB / 367.3 MB, free: 4.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001488/0.16, allocations: 1.029 MB / 368.3 MB, free: 3.895 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001176/0.1612, allocations: 0.6142 MB / 368.9 MB, free: 3.262 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005576/0.1618, allocations: 342.8 kB / 369.3 MB, free: 2.926 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005686/0.1624, allocations: 362.3 kB / 369.6 MB, free: 2.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000159/0.1626, allocations: 99.94 kB / 369.7 MB, free: 2.473 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003773/0.163, allocations: 148 kB / 369.9 MB, free: 2.328 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000255/0.1632, allocations: 207.4 kB / 370.1 MB, free: 2.125 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005319/0.1638, allocations: 434 kB / 370.5 MB, free: 1.699 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001514/0.1653, allocations: 1.18 MB / 371.7 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.1653, allocations: 0 / 371.7 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.1653, allocations: 0 / 371.7 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.1653, allocations: 0 / 371.7 MB, free: 0.5156 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.1713/0.3367, allocations: 1.033 MB / 372.7 MB, free: 20.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.3367, allocations: 9.562 kB / 372.7 MB, free: 20.21 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003476/0.3371, allocations: 96.77 kB / 372.8 MB, free: 20.17 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009313/0.338, allocations: 0.5224 MB / 373.3 MB, free: 19.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.163e-05/0.3381, allocations: 67.66 kB / 373.4 MB, free: 19.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.3382, allocations: 88.16 kB / 373.5 MB, free: 19.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001321/0.3395, allocations: 0.8026 MB / 374.3 MB, free: 19.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.182e-05/0.3396, allocations: 11.22 kB / 374.3 MB, free: 19.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.292e-05/0.3396, allocations: 37.16 kB / 374.3 MB, free: 19.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.86e-05/0.3397, allocations: 20.06 kB / 374.3 MB, free: 19.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.3407, allocations: 0.4921 MB / 374.8 MB, free: 19.4 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003623/0.3443, allocations: 2.85 MB / 377.7 MB, free: 17.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005507/0.3449, allocations: 234.6 kB / 377.9 MB, free: 17.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001761/0.3451, allocations: 102.7 kB / 378 MB, free: 17.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001527/0.3452, allocations: 246.7 kB / 378.2 MB, free: 17.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.21e-05/0.3453, allocations: 43.81 kB / 378.3 MB, free: 16.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.084e-06/0.3453, allocations: 0 / 378.3 MB, free: 16.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002074/0.3474, allocations: 1.26 MB / 379.6 MB, free: 16.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.293e-05/0.3474, allocations: 56.41 kB / 379.6 MB, free: 16.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002896/0.3477, allocations: 310.3 kB / 379.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.3477, allocations: 30.8 kB / 379.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002127/0.3479, allocations: 397.1 kB / 380.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/0.3481, allocations: 138.8 kB / 380.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.3482, allocations: 90.19 kB / 380.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.3483, allocations: 354.1 kB / 380.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.3485, allocations: 107.9 kB / 381 MB, free: 15.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002492/0.3488, allocations: 253.5 kB / 381.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004407/0.3492, allocations: 393.1 kB / 381.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3492, allocations: 1.156 kB / 381.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006449/0.3499, allocations: 457.8 kB / 382.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.3499, allocations: 7.688 kB / 382.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.3499, allocations: 4.156 kB / 382.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001765/0.3501, allocations: 37.67 kB / 382.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003492/0.3505, allocations: 113.7 kB / 382.2 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002654/0.3507, allocations: 0.5567 MB / 382.8 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001754/0.3509, allocations: 16.53 kB / 382.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.836e-05/0.351, allocations: 22.67 kB / 382.8 MB, free: 13.73 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * 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.0002172/0.3512, allocations: 217.4 kB / 383 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.729e-05/0.3512, allocations: 38.09 kB / 383.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005545/0.3518, allocations: 327.1 kB / 383.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.3518, allocations: 4.281 kB / 383.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3518, allocations: 3.938 kB / 383.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.3518, allocations: 3.891 kB / 383.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001304/0.3532, allocations: 1.019 MB / 384.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.3532, allocations: 2.172 kB / 384.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003475/0.3535, allocations: 76.62 kB / 384.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000113/0.3536, allocations: 34.02 kB / 384.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.564e-05/0.3537, allocations: 10.39 kB / 384.6 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002171/0.3539, allocations: 0.5603 MB / 385.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3539, allocations: 1.562 kB / 385.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006812/0.3546, allocations: 0.5437 MB / 385.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.909e-05/0.3547, allocations: 109.4 kB / 385.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.722e-05/0.3547, allocations: 12.14 kB / 385.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001526/0.3549, allocations: 8.312 kB / 385.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.463e-05/0.355, allocations: 19.39 kB / 385.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.277e-05/0.355, allocations: 15.12 kB / 385.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001972/0.3552, allocations: 218.1 kB / 386 MB, free: 11.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3552, allocations: 1.281 kB / 386 MB, free: 11.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004991/0.3557, allocations: 117.5 kB / 386.2 MB, free: 11.57 MB / 302.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.phi,inertia2b.w,torqueToAngle2b.phi,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.0001564/0.3559, allocations: 128.5 kB / 386.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005927/0.3565, allocations: 311.7 kB / 386.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3565, allocations: 0 / 386.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002562/0.3567, allocations: 145.7 kB / 386.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004994/0.3573, allocations: 68.89 kB / 386.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002086/0.3593, allocations: 1.577 MB / 388.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004134/0.3598, allocations: 0.9194 MB / 389.3 MB, free: 9.551 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001498/0.3599, allocations: 48.44 kB / 389.3 MB, free: 9.539 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.267e-05/0.36, allocations: 30.81 kB / 389.4 MB, free: 9.531 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.36, allocations: 192 / 389.4 MB, free: 9.531 MB / 302.1 MB Notification: Performance of Templates: time 0.009059/0.3691, allocations: 3.764 MB / 393.1 MB, free: 8.461 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches