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.001264/0.001264, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00144/0.00144, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.4 MB / 247 MB, free: 10.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001763/0.001763, allocations: 68.11 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.2311, allocations: 50.54 MB / 408.8 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.00412/0.2353, allocations: 2.367 MB / 411.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001295/0.2366, allocations: 0.6427 MB / 411.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001801/0.2368, allocations: 8 kB / 411.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001866/0.237, allocations: 35.59 kB / 411.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001955/0.2373, allocations: 75.33 kB / 411.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002951/0.2376, allocations: 67.84 kB / 412 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003417/0.2379, allocations: 278.6 kB / 412.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002363/0.2382, allocations: 106.7 kB / 412.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002276/0.2384, allocations: 115.6 kB / 412.5 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001864/0.2386, allocations: 111.5 kB / 412.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.468e-05/0.2387, allocations: 23.94 kB / 412.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.573e-05/0.2387, allocations: 24 kB / 412.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.412e-05/0.2388, allocations: 47.84 kB / 412.7 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.2389, allocations: 123.4 kB / 412.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003874/0.2393, allocations: 266 kB / 413.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.2393, allocations: 7.984 kB / 413.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2394, allocations: 4 kB / 413.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.226e-06/0.2394, allocations: 4 kB / 413.1 MB, free: 13.27 MB / 334.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.0007693/0.2401, allocations: 0.5221 MB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.2402, allocations: 8.031 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.127e-05/0.2403, allocations: 58.73 kB / 413.7 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001582/0.2404, allocations: 40.73 kB / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003498/0.2408, allocations: 248.7 kB / 414 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.2408, allocations: 12.81 kB / 414 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.056e-05/0.2409, allocations: 36.2 kB / 414 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003567/0.2412, allocations: 195.4 kB / 414.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.2413, allocations: 3.984 kB / 414.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.411e-05/0.2413, allocations: 15.94 kB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.2413, allocations: 4 kB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002929/0.2416, allocations: 141.7 kB / 414.4 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009879/0.2426, allocations: 0.6192 MB / 415 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003109/0.2429, allocations: 182.4 kB / 415.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001883/0.2431, allocations: 104.8 kB / 415.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.2432, allocations: 8 kB / 415.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.2432, allocations: 34.56 kB / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.913e-06/0.2432, allocations: 0 / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001983/0.2452, allocations: 1.069 MB / 416.4 MB, free: 9.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/0.2453, allocations: 63.34 kB / 416.4 MB, free: 9.656 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001875/0.2455, allocations: 179.2 kB / 416.6 MB, free: 9.473 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.385e-05/0.2455, allocations: 29.7 kB / 416.6 MB, free: 9.438 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.904e-05/0.2456, allocations: 140.9 kB / 416.8 MB, free: 9.293 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.2457, allocations: 126.9 kB / 416.9 MB, free: 9.168 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.892e-05/0.2458, allocations: 53.7 kB / 417 MB, free: 9.109 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.246, allocations: 334.8 kB / 417.3 MB, free: 8.773 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.2462, allocations: 67.97 kB / 417.4 MB, free: 8.707 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001717/0.2463, allocations: 102.8 kB / 417.5 MB, free: 8.598 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003387/0.2467, allocations: 197.5 kB / 417.6 MB, free: 8.398 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-06/0.2467, allocations: 0 / 417.6 MB, free: 8.398 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000539/0.2472, allocations: 291.2 kB / 417.9 MB, free: 8.105 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.2473, allocations: 4 kB / 417.9 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.2473, allocations: 4 kB / 417.9 MB, free: 8.098 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001774/0.2475, allocations: 40.83 kB / 418 MB, free: 8.055 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002442/0.2477, allocations: 63.97 kB / 418 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001705/0.2494, allocations: 1.74 MB / 419.8 MB, free: 6.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001406/0.2496, allocations: 11.98 kB / 419.8 MB, free: 6.105 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.2496, allocations: 4 kB / 419.8 MB, free: 6.102 MB / 334.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.0001622/0.2498, allocations: 145.3 kB / 419.9 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.005e-05/0.2498, allocations: 27.8 kB / 420 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.412e-05/0.2499, allocations: 26.72 kB / 420 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2499, allocations: 7.984 kB / 420 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.2499, allocations: 4 kB / 420 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.2499, allocations: 3.938 kB / 420 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/0.2511, allocations: 0.7893 MB / 420.8 MB, free: 5.016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.2512, allocations: 0 / 420.8 MB, free: 5.016 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002771/0.2515, allocations: 55.91 kB / 420.9 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001301/0.2516, allocations: 44.75 kB / 420.9 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.215e-05/0.2516, allocations: 8 kB / 420.9 MB, free: 4.906 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001345/0.253, allocations: 1.481 MB / 422.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.253, allocations: 3.984 kB / 422.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000751/0.2538, allocations: 486.7 kB / 422.9 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.143e-05/0.2539, allocations: 101 kB / 423 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.7e-05/0.2539, allocations: 4 kB / 423 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.254, allocations: 8 kB / 423 MB, free: 2.641 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.791e-05/0.2541, allocations: 27.97 kB / 423 MB, free: 2.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-05/0.2541, allocations: 19.94 kB / 423 MB, free: 2.594 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001262/0.2543, allocations: 136.3 kB / 423.2 MB, free: 2.461 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2543, allocations: 0 / 423.2 MB, free: 2.461 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003935/0.2547, allocations: 68 kB / 423.2 MB, free: 2.395 MB / 334.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.001093/0.2558, allocations: 1.017 MB / 424.2 MB, free: 1.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000652/0.2564, allocations: 346.4 kB / 424.6 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.2565, allocations: 0 / 424.6 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003617/0.2568, allocations: 242.5 kB / 424.8 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004482/0.2573, allocations: 42.86 kB / 424.9 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00381/0.2611, allocations: 2.771 MB / 427.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004079/0.2615, allocations: 0.7523 MB / 428.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.2617, allocations: 30.28 kB / 428.4 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.2618, allocations: 75.41 kB / 428.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2618, allocations: 0 / 428.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0325/0.2943, allocations: 5.278 MB / 433.8 MB, free: 7.762 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.899/10.19, allocations: 10.59 kB / 433.8 MB, free: 7.754 MB / 350.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.1.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