Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001258/0.001258, allocations: 103.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001351/0.001351, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.237/1.237, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001449, allocations: 56.16 kB / 307 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.119, allocations: 50.54 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.00429/0.1234, allocations: 2.36 MB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001337/0.1247, allocations: 0.6543 MB / 360.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002455/0.125, allocations: 4 kB / 360.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001802/0.1252, allocations: 39.59 kB / 360.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002429/0.1255, allocations: 75.33 kB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003125/0.1258, allocations: 67.84 kB / 360.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000544/0.1264, allocations: 270.7 kB / 361 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002947/0.1267, allocations: 110.7 kB / 361.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003198/0.127, allocations: 107.6 kB / 361.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002479/0.1273, allocations: 115.5 kB / 361.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.414e-05/0.1273, allocations: 23.94 kB / 361.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.616e-05/0.1274, allocations: 28 kB / 361.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.112e-05/0.1275, allocations: 47.78 kB / 361.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001237/0.1276, allocations: 119.4 kB / 361.6 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002969/0.1279, allocations: 267.3 kB / 361.8 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.884e-06/0.1279, allocations: 0 / 361.8 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1279, allocations: 0 / 361.8 MB, free: 9.723 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.1279, allocations: 4 kB / 361.8 MB, free: 9.719 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0009134/0.1289, allocations: 0.5185 MB / 362.4 MB, free: 9.148 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.1289, allocations: 8.031 kB / 362.4 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.404e-05/0.129, allocations: 62.72 kB / 362.4 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001714/0.1292, allocations: 36.64 kB / 362.5 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002857/0.1295, allocations: 242.2 kB / 362.7 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.1295, allocations: 20.8 kB / 362.7 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.367e-05/0.1295, allocations: 20.38 kB / 362.7 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003458/0.1299, allocations: 195.4 kB / 362.9 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.108e-05/0.1299, allocations: 11.84 kB / 362.9 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.439e-05/0.13, allocations: 8 kB / 363 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.768e-05/0.13, allocations: 8 kB / 363 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002838/0.1303, allocations: 137.6 kB / 363.1 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001065/0.1314, allocations: 0.6268 MB / 363.7 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.1317, allocations: 186.5 kB / 363.9 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001606/0.1318, allocations: 104.8 kB / 364 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.637e-05/0.1319, allocations: 0 / 364 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.1319, allocations: 38.56 kB / 364 MB, free: 7.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.402e-06/0.1319, allocations: 0 / 364 MB, free: 7.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001889/0.1338, allocations: 1.071 MB / 365.1 MB, free: 6.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.057e-05/0.1339, allocations: 63.28 kB / 365.2 MB, free: 6.105 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002131/0.1341, allocations: 190.2 kB / 365.4 MB, free: 5.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.1341, allocations: 29.7 kB / 365.4 MB, free: 5.875 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.15e-05/0.1342, allocations: 144.6 kB / 365.5 MB, free: 5.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.613e-05/0.1343, allocations: 110.3 kB / 365.6 MB, free: 5.621 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.423e-05/0.1344, allocations: 53.7 kB / 365.7 MB, free: 5.562 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.1345, allocations: 330.8 kB / 366 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001427/0.1347, allocations: 75.72 kB / 366.1 MB, free: 5.156 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001776/0.1349, allocations: 106.8 kB / 366.2 MB, free: 5.043 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003069/0.1352, allocations: 193 kB / 366.4 MB, free: 4.848 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.1352, allocations: 0 / 366.4 MB, free: 4.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005751/0.1358, allocations: 283.2 kB / 366.7 MB, free: 4.562 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.1358, allocations: 15.98 kB / 366.7 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.1358, allocations: 4 kB / 366.7 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002523/0.1361, allocations: 36.84 kB / 366.7 MB, free: 4.504 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003526/0.1364, allocations: 59.91 kB / 366.8 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001773/0.1382, allocations: 1.748 MB / 368.5 MB, free: 2.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001299/0.1384, allocations: 12.25 kB / 368.5 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.927e-05/0.1384, allocations: 7.984 kB / 368.5 MB, free: 2.535 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000176/0.1386, allocations: 145.7 kB / 368.7 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.156e-05/0.1387, allocations: 31.66 kB / 368.7 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.842e-05/0.1387, allocations: 30.64 kB / 368.7 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.1387, allocations: 4 kB / 368.8 MB, free: 2.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.1387, allocations: 0 / 368.8 MB, free: 2.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.1388, allocations: 0 / 368.8 MB, free: 2.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001187/0.14, allocations: 0.8013 MB / 369.6 MB, free: 1.441 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.14, allocations: 0 / 369.6 MB, free: 1.441 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000264/0.1402, allocations: 59.91 kB / 369.6 MB, free: 1.383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001302/0.1404, allocations: 32.84 kB / 369.6 MB, free: 1.348 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.486e-05/0.1404, allocations: 4 kB / 369.6 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1807/0.3212, allocations: 1.481 MB / 371.1 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.3212, allocations: 2.25 kB / 371.1 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008933/0.3221, allocations: 478.7 kB / 371.6 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.676e-05/0.3222, allocations: 96.61 kB / 371.7 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.974e-05/0.3223, allocations: 10.36 kB / 371.7 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.3224, allocations: 9.219 kB / 371.7 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.134e-05/0.3225, allocations: 24.3 kB / 371.7 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.638e-05/0.3226, allocations: 10.55 kB / 371.7 MB, free: 18.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001343/0.3227, allocations: 135 kB / 371.9 MB, free: 18.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3227, allocations: 1.25 kB / 371.9 MB, free: 18.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004876/0.3232, allocations: 66.97 kB / 371.9 MB, free: 18.8 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (29): * Single equations (assignments): 28 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001019/0.3242, allocations: 1.021 MB / 373 MB, free: 18.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007387/0.325, allocations: 360.6 kB / 373.3 MB, free: 18.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.325, allocations: 1.188 kB / 373.3 MB, free: 18.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003878/0.3254, allocations: 244.4 kB / 373.6 MB, free: 17.9 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005481/0.326, allocations: 43.36 kB / 373.6 MB, free: 17.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003866/0.3298, allocations: 2.76 MB / 376.4 MB, free: 16.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.3301, allocations: 0.7527 MB / 377.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000123/0.3303, allocations: 25.25 kB / 377.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.3304, allocations: 72.91 kB / 377.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3304, allocations: 0 / 377.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04264/0.3731, allocations: 5.135 MB / 382.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.22/10.59, allocations: 23.86 kB / 382.4 MB, free: 14.87 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,damper.phi_rel,damper.w_rel,inertia3.phi,inertia3.w Variables in the result:Jload,Jmotor,amplitude,damper.a_rel,damper.d,damper.flange_a.phi,damper.flange_a.tau,damper.flange_b.phi,damper.flange_b.tau,damper.lossPower,damper.phi_nominal,damper.phi_rel,damper.stateSelect,damper.tau,damper.useHeatPort,damper.w_rel,damping,der(damper.phi_rel),der(damper.w_rel),der(der(idealGear.phi_a)),der(der(idealGear.phi_b)),der(idealGear.phi_a),der(idealGear.phi_b),der(inertia1.phi),der(inertia1.w),der(inertia2.phi),der(inertia2.w),der(inertia3.phi),der(inertia3.w),f,fixed.flange.phi,fixed.flange.tau,fixed.phi0,idealGear.flange_a.phi,idealGear.flange_a.tau,idealGear.flange_b.phi,idealGear.flange_b.tau,idealGear.phi_a,idealGear.phi_b,idealGear.ratio,idealGear.support.phi,idealGear.support.tau,idealGear.useSupport,inertia1.J,inertia1.a,inertia1.flange_a.phi,inertia1.flange_a.tau,inertia1.flange_b.phi,inertia1.flange_b.tau,inertia1.phi,inertia1.stateSelect,inertia1.w,inertia2.J,inertia2.a,inertia2.flange_a.phi,inertia2.flange_a.tau,inertia2.flange_b.phi,inertia2.flange_b.tau,inertia2.phi,inertia2.stateSelect,inertia2.w,inertia3.J,inertia3.a,inertia3.flange_a.phi,inertia3.flange_a.tau,inertia3.flange_b.phi,inertia3.flange_b.tau,inertia3.phi,inertia3.stateSelect,inertia3.w,ratio,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,spring.c,spring.flange_a.phi,spring.flange_a.tau,spring.flange_b.phi,spring.flange_b.tau,spring.phi_rel,spring.phi_rel0,spring.tau,time,torque.flange.phi,torque.flange.tau,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport