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.001415/0.001415, allocations: 122.8 kB / 17.79 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 197.2 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.462/1.462, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 67.88 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2562/0.2581, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003823/0.262, allocations: 2.371 MB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001216/0.2632, allocations: 0.6426 MB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.2634, allocations: 4 kB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001549/0.2635, allocations: 35.59 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001629/0.2637, allocations: 79.33 kB / 411.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002495/0.264, allocations: 67.84 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003223/0.2643, allocations: 270.7 kB / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002428/0.2646, allocations: 106.7 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002105/0.2648, allocations: 119.6 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002063/0.265, allocations: 115.5 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.375e-05/0.265, allocations: 20 kB / 412.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.104e-05/0.2651, allocations: 24 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.109e-05/0.2652, allocations: 47.78 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.2653, allocations: 123.4 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003831/0.2657, allocations: 274 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2657, allocations: 0 / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.607e-06/0.2657, allocations: 0 / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.064e-06/0.2657, allocations: 3.938 kB / 413 MB, free: 13.25 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.0007712/0.2665, allocations: 0.5299 MB / 413.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.2666, allocations: 8.031 kB / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.426e-05/0.2666, allocations: 58.73 kB / 413.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001716/0.2668, allocations: 36.73 kB / 413.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003556/0.2672, allocations: 248.7 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.2672, allocations: 20.75 kB / 413.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.344e-05/0.2673, allocations: 24.33 kB / 413.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003501/0.2676, allocations: 195.4 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.2676, allocations: 4 kB / 414.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.347e-05/0.2677, allocations: 11.98 kB / 414.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.2677, allocations: 4 kB / 414.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002833/0.268, allocations: 137.7 kB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.269, allocations: 0.627 MB / 414.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003269/0.2693, allocations: 196.1 kB / 415.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001814/0.2695, allocations: 100.8 kB / 415.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.272e-05/0.2696, allocations: 3.984 kB / 415.2 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.714e-05/0.2696, allocations: 42.55 kB / 415.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.595e-06/0.2696, allocations: 0 / 415.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001973/0.2716, allocations: 1.065 MB / 416.3 MB, free: 9.699 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.177e-05/0.2716, allocations: 59.34 kB / 416.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000201/0.2719, allocations: 183.2 kB / 416.6 MB, free: 9.441 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.2719, allocations: 29.7 kB / 416.6 MB, free: 9.406 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.272, allocations: 140.9 kB / 416.7 MB, free: 9.262 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.2721, allocations: 122.9 kB / 416.8 MB, free: 9.141 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.26e-05/0.2722, allocations: 53.7 kB / 416.9 MB, free: 9.082 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.2724, allocations: 330.8 kB / 417.2 MB, free: 8.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001461/0.2725, allocations: 75.97 kB / 417.3 MB, free: 8.676 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.2727, allocations: 102.8 kB / 417.4 MB, free: 8.566 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003204/0.273, allocations: 189.6 kB / 417.6 MB, free: 8.375 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.273, allocations: 0 / 417.6 MB, free: 8.375 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005209/0.2736, allocations: 295.2 kB / 417.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.2736, allocations: 11.12 kB / 417.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2736, allocations: 0 / 417.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001772/0.2738, allocations: 44.83 kB / 417.9 MB, free: 8.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002604/0.2741, allocations: 59.91 kB / 418 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001885/0.2759, allocations: 1.736 MB / 419.7 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001706/0.2762, allocations: 16.08 kB / 419.7 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.139e-05/0.2762, allocations: 8 kB / 419.7 MB, free: 6.07 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.0001809/0.2764, allocations: 141.2 kB / 419.9 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.505e-05/0.2764, allocations: 27.8 kB / 419.9 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.181e-05/0.2765, allocations: 26.66 kB / 419.9 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.2765, allocations: 4 kB / 419.9 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/0.2765, allocations: 3.984 kB / 419.9 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.2765, allocations: 4 kB / 419.9 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001253/0.2778, allocations: 0.7854 MB / 420.7 MB, free: 4.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.2778, allocations: 3.938 kB / 420.7 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002712/0.2781, allocations: 64 kB / 420.8 MB, free: 4.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000134/0.2782, allocations: 36.83 kB / 420.8 MB, free: 4.891 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.2783, allocations: 4 kB / 420.8 MB, free: 4.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00143/0.2797, allocations: 1.493 MB / 422.3 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.2797, allocations: 0 / 422.3 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007245/0.2804, allocations: 486.6 kB / 422.8 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.552e-05/0.2805, allocations: 97 kB / 422.9 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.649e-05/0.2806, allocations: 8 kB / 422.9 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001317/0.2807, allocations: 8 kB / 422.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.561e-05/0.2808, allocations: 27.84 kB / 422.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.456e-05/0.2808, allocations: 16 kB / 423 MB, free: 2.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001194/0.2809, allocations: 140.3 kB / 423.1 MB, free: 2.434 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2809, allocations: 0 / 423.1 MB, free: 2.434 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003784/0.2813, allocations: 64 kB / 423.2 MB, free: 2.371 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.00112/0.2824, allocations: 1.017 MB / 424.2 MB, free: 1.316 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007505/0.2832, allocations: 342.4 kB / 424.5 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.2832, allocations: 8.125 kB / 424.5 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003791/0.2836, allocations: 238.5 kB / 424.7 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004995/0.2841, allocations: 47.27 kB / 424.8 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003794/0.2879, allocations: 2.767 MB / 427.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003982/0.2884, allocations: 0.7564 MB / 428.3 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.2885, allocations: 26.27 kB / 428.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001243/0.2886, allocations: 79.41 kB / 428.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2886, allocations: 4 kB / 428.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03489/0.3235, allocations: 5.265 MB / 433.7 MB, free: 7.738 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.07/10.39, allocations: 14.81 kB / 433.7 MB, free: 7.73 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_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_First.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.csv","/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) Reference file matches