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.001188/0.001188, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00118/0.00118, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.4 MB / 247.4 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001819/0.001819, allocations: 64.77 kB / 307.6 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1206, allocations: 50.53 MB / 358.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007235/0.1279, allocations: 5.446 MB / 363.6 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004316/0.1322, allocations: 2.138 MB / 365.7 MB, free: 6.469 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001183/0.1335, allocations: 35.81 kB / 365.8 MB, free: 6.434 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007502/0.1343, allocations: 210.2 kB / 366 MB, free: 6.227 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007983/0.1351, allocations: 170.4 kB / 366.1 MB, free: 6.059 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001387/0.1365, allocations: 403 kB / 366.5 MB, free: 5.664 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00154/0.138, allocations: 1.021 MB / 367.5 MB, free: 4.637 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001104/0.1392, allocations: 0.6143 MB / 368.2 MB, free: 4.004 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006107/0.1398, allocations: 338.9 kB / 368.5 MB, free: 3.672 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005387/0.1403, allocations: 362.3 kB / 368.8 MB, free: 3.316 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002148/0.1406, allocations: 92 kB / 368.9 MB, free: 3.227 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003979/0.141, allocations: 155.9 kB / 369.1 MB, free: 3.074 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002101/0.1412, allocations: 199.4 kB / 369.3 MB, free: 2.879 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000576/0.1418, allocations: 438 kB / 369.7 MB, free: 2.449 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001484/0.1433, allocations: 1.153 MB / 370.9 MB, free: 1.293 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1433, allocations: 0 / 370.9 MB, free: 1.293 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1433, allocations: 0 / 370.9 MB, free: 1.293 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.803e-05/0.1434, allocations: 4 kB / 370.9 MB, free: 1.289 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.001904/0.1453, allocations: 1.037 MB / 371.9 MB, free: 204 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.1453, allocations: 8.031 kB / 371.9 MB, free: 196 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002995/0.1456, allocations: 91.91 kB / 372 MB, free: 104 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1648/0.3105, allocations: 0.5018 MB / 372.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.618e-05/0.3106, allocations: 63.53 kB / 372.6 MB, free: 20.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001494/0.3108, allocations: 88.41 kB / 372.7 MB, free: 20.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0016/0.3124, allocations: 0.8017 MB / 373.5 MB, free: 20.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.467e-05/0.3124, allocations: 8.531 kB / 373.5 MB, free: 20.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.702e-05/0.3125, allocations: 37.61 kB / 373.5 MB, free: 20.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.129e-05/0.3125, allocations: 21.31 kB / 373.5 MB, free: 20.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000983/0.3135, allocations: 0.4956 MB / 374 MB, free: 19.83 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003191/0.3167, allocations: 2.893 MB / 376.9 MB, free: 17.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005456/0.3173, allocations: 227.6 kB / 377.1 MB, free: 17.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.3174, allocations: 105.7 kB / 377.2 MB, free: 17.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002414/0.3177, allocations: 245.1 kB / 377.5 MB, free: 17.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.052e-05/0.3177, allocations: 38.33 kB / 377.5 MB, free: 17.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.985e-06/0.3177, allocations: 2.25 kB / 377.5 MB, free: 17.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.00222/0.32, allocations: 1.267 MB / 378.8 MB, free: 16.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.598e-05/0.32, allocations: 58.31 kB / 378.8 MB, free: 16.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000302/0.3203, allocations: 309.9 kB / 379.1 MB, free: 16.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.3203, allocations: 38.69 kB / 379.2 MB, free: 16.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001971/0.3205, allocations: 399.2 kB / 379.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.476e-05/0.3206, allocations: 134.1 kB / 379.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.3207, allocations: 86.98 kB / 379.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.956e-05/0.3208, allocations: 348.2 kB / 380.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002078/0.321, allocations: 106.5 kB / 380.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002436/0.3213, allocations: 248.4 kB / 380.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004477/0.3217, allocations: 397.4 kB / 380.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/0.3218, allocations: 5.281 kB / 380.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007372/0.3225, allocations: 455.6 kB / 381.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.3225, allocations: 7.484 kB / 381.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.3225, allocations: 3.719 kB / 381.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002085/0.3228, allocations: 38.67 kB / 381.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003532/0.3231, allocations: 112.7 kB / 381.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002851/0.3234, allocations: 0.5559 MB / 382 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001932/0.3236, allocations: 20.75 kB / 382 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.515e-05/0.3237, allocations: 22.48 kB / 382.1 MB, free: 14.13 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.0002726/0.324, allocations: 217.8 kB / 382.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.357e-05/0.324, allocations: 37.56 kB / 382.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006067/0.3246, allocations: 318 kB / 382.6 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.3247, allocations: 7.406 kB / 382.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.3247, allocations: 1.672 kB / 382.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.3247, allocations: 1.641 kB / 382.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001441/0.3261, allocations: 1.021 MB / 383.7 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3261, allocations: 1.812 kB / 383.7 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003459/0.3265, allocations: 84.02 kB / 383.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001454/0.3266, allocations: 34.56 kB / 383.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.694e-05/0.3267, allocations: 9.234 kB / 383.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002338/0.3269, allocations: 0.5574 MB / 384.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.3269, allocations: 2.188 kB / 384.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000684/0.3276, allocations: 0.5365 MB / 384.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.104e-05/0.3277, allocations: 115.5 kB / 385 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.792e-05/0.3278, allocations: 8.766 kB / 385 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.3279, allocations: 9.25 kB / 385 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.719e-05/0.328, allocations: 31.92 kB / 385 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-05/0.328, allocations: 9.406 kB / 385.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002152/0.3282, allocations: 222.7 kB / 385.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3282, allocations: 0 / 385.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005567/0.3288, allocations: 120.8 kB / 385.4 MB, free: 11.97 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.000173/0.329, allocations: 113.8 kB / 385.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006903/0.3297, allocations: 327.3 kB / 385.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3297, allocations: 0 / 385.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000259/0.33, allocations: 143.6 kB / 386 MB, free: 11.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005196/0.3305, allocations: 77.25 kB / 386 MB, free: 11.69 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002374/0.3329, allocations: 1.635 MB / 387.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004292/0.3333, allocations: 0.9248 MB / 388.6 MB, free: 9.871 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.106e-05/0.3334, allocations: 35.14 kB / 388.6 MB, free: 9.863 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3334, allocations: 0 / 388.6 MB, free: 9.863 MB / 302.1 MB Notification: Performance of Templates: time 0.01435/0.3478, allocations: 9.754 MB / 398.4 MB, free: 5.434 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 -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