Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001267/0.001267, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00141/0.00141, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002454/0.002454, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2596, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003828/0.2635, allocations: 2.366 MB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00125/0.2648, allocations: 0.6427 MB / 411.8 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001894/0.265, allocations: 8 kB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001745/0.2652, allocations: 39.59 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001874/0.2654, allocations: 67.34 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002813/0.2657, allocations: 63.92 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003397/0.266, allocations: 258.7 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002637/0.2663, allocations: 96.27 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002413/0.2666, allocations: 115.6 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.2667, allocations: 103.5 kB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.818e-05/0.2668, allocations: 20 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.562e-05/0.2669, allocations: 20 kB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.348e-05/0.2669, allocations: 47.84 kB / 412.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.2671, allocations: 111.4 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003513/0.2674, allocations: 254.1 kB / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2674, allocations: 0 / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2675, allocations: 4 kB / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.198e-06/0.2675, allocations: 0 / 412.9 MB, free: 13.34 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008003/0.2683, allocations: 0.5259 MB / 413.5 MB, free: 12.76 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.2683, allocations: 11.97 kB / 413.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.102e-05/0.2684, allocations: 54.73 kB / 413.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001599/0.2686, allocations: 32.78 kB / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003721/0.2689, allocations: 248.7 kB / 413.8 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.304e-05/0.269, allocations: 16.81 kB / 413.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.341e-05/0.269, allocations: 24.38 kB / 413.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003737/0.2694, allocations: 213.9 kB / 414.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.2694, allocations: 3.953 kB / 414.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.986e-05/0.2695, allocations: 8 kB / 414.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.2695, allocations: 4 kB / 414.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002615/0.2697, allocations: 133.7 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001082/0.2708, allocations: 0.6978 MB / 414.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002683/0.2711, allocations: 150.5 kB / 415 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001418/0.2713, allocations: 72.81 kB / 415.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.733e-05/0.2713, allocations: 8 kB / 415.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.2713, allocations: 34.56 kB / 415.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.663e-06/0.2713, allocations: 0 / 415.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001643/0.273, allocations: 0.8908 MB / 416.1 MB, free: 9.957 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.273, allocations: 59.34 kB / 416.1 MB, free: 9.887 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001896/0.2732, allocations: 172.9 kB / 416.3 MB, free: 9.703 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.2733, allocations: 33.7 kB / 416.3 MB, free: 9.664 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.2734, allocations: 148.3 kB / 416.5 MB, free: 9.516 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.068e-05/0.2735, allocations: 87.28 kB / 416.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.32e-05/0.2735, allocations: 45.7 kB / 416.6 MB, free: 9.379 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.2737, allocations: 330.8 kB / 416.9 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.2738, allocations: 55.97 kB / 417 MB, free: 8.992 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001615/0.274, allocations: 108.2 kB / 417.1 MB, free: 8.871 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002759/0.2743, allocations: 168.1 kB / 417.2 MB, free: 8.691 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.2743, allocations: 0 / 417.2 MB, free: 8.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004558/0.2748, allocations: 254.1 kB / 417.5 MB, free: 8.434 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.2748, allocations: 8 kB / 417.5 MB, free: 8.426 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.2748, allocations: 4.125 kB / 417.5 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001569/0.275, allocations: 32.83 kB / 417.5 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002085/0.2752, allocations: 55.84 kB / 417.6 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001393/0.2766, allocations: 1.485 MB / 419.1 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/0.2767, allocations: 8.031 kB / 419.1 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.2768, allocations: 8 kB / 419.1 MB, free: 6.688 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 27 * 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 prepare postOptimizeDAE: time 0.0001543/0.2769, allocations: 137.9 kB / 419.2 MB, free: 6.543 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.378e-05/0.277, allocations: 27.91 kB / 419.2 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.985e-05/0.2771, allocations: 25.86 kB / 419.3 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.2771, allocations: 7.938 kB / 419.3 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.2771, allocations: 0 / 419.3 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.2771, allocations: 3.938 kB / 419.3 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/0.2781, allocations: 0.6481 MB / 419.9 MB, free: 5.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.2781, allocations: 0 / 419.9 MB, free: 5.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002194/0.2783, allocations: 47.91 kB / 420 MB, free: 5.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001288/0.2785, allocations: 36.83 kB / 420 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.2785, allocations: 4 kB / 420 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001352/0.2799, allocations: 1.489 MB / 421.5 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.2799, allocations: 0 / 421.5 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006371/0.2805, allocations: 402.2 kB / 421.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.016e-05/0.2806, allocations: 92.97 kB / 422 MB, free: 3.512 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.943e-05/0.2807, allocations: 8 kB / 422 MB, free: 3.504 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.2808, allocations: 8.031 kB / 422 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.608e-05/0.2809, allocations: 28.09 kB / 422 MB, free: 3.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.204e-05/0.2809, allocations: 4 kB / 422 MB, free: 3.465 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001159/0.281, allocations: 132.1 kB / 422.2 MB, free: 3.336 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.281, allocations: 0 / 422.2 MB, free: 3.336 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003399/0.2814, allocations: 56 kB / 422.2 MB, free: 3.281 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (21): * Single equations (assignments): 20 * 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.0009563/0.2823, allocations: 0.9445 MB / 423.2 MB, free: 2.305 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006017/0.2829, allocations: 302.7 kB / 423.5 MB, free: 1.996 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.283, allocations: 4 kB / 423.5 MB, free: 1.992 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003219/0.2833, allocations: 203.7 kB / 423.7 MB, free: 1.781 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004383/0.2837, allocations: 42.88 kB / 423.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003493/0.2872, allocations: 2.554 MB / 426.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003787/0.2876, allocations: 0.7404 MB / 427 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.544e-05/0.2877, allocations: 25.94 kB / 427 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.2878, allocations: 67.42 kB / 427.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2878, allocations: 0 / 427.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04554/0.3334, allocations: 4.756 MB / 431.8 MB, free: 9.578 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.04/10.37, allocations: 14.31 kB / 431.9 MB, free: 9.57 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches