Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002204/0.002204, allocations: 106 kB / 17.58 MB, free: 5.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002668/0.002669, allocations: 188.2 kB / 18.51 MB, free: 4.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.759/2.759, allocations: 205.1 MB / 224.4 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002067/0.002068, allocations: 52.14 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1888/0.1909, allocations: 46.62 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.007081/0.1981, allocations: 2.346 MB / 329.7 MB, free: 2.016 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002549/0.2007, allocations: 0.6203 MB / 330.3 MB, free: 1.387 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003908/0.2011, allocations: 7.938 kB / 330.3 MB, free: 1.379 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003003/0.2015, allocations: 35.66 kB / 330.4 MB, free: 1.344 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005018/0.202, allocations: 75.33 kB / 330.5 MB, free: 1.27 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004345/0.2025, allocations: 55.86 kB / 330.5 MB, free: 1.215 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006811/0.2032, allocations: 274.7 kB / 330.8 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000392/0.2036, allocations: 102.7 kB / 330.9 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003372/0.204, allocations: 111.6 kB / 331 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005213/0.2045, allocations: 115.5 kB / 331.1 MB, free: 0.625 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.685e-05/0.2046, allocations: 20 kB / 331.1 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.527e-05/0.2047, allocations: 20 kB / 331.1 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.615e-05/0.2048, allocations: 51.78 kB / 331.2 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002599/0.2051, allocations: 119.4 kB / 331.3 MB, free: 428 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000514/0.2056, allocations: 263.3 kB / 331.6 MB, free: 164 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.192e-05/0.2057, allocations: 3.984 kB / 331.6 MB, free: 160 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.2057, allocations: 0 / 331.6 MB, free: 160 kB / 270.1 MB Notification: Performance of Transformations before backend: time 2.061e-05/0.2057, allocations: 0 / 331.6 MB, free: 160 kB / 270.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.001534/0.2072, allocations: 0.5263 MB / 332.1 MB, free: 15.57 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.808e-05/0.2073, allocations: 11.89 kB / 332.1 MB, free: 15.56 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001225/0.2075, allocations: 58.58 kB / 332.2 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001085/0.2076, allocations: 28.66 kB / 332.2 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005129/0.2081, allocations: 240.6 kB / 332.4 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.284e-05/0.2082, allocations: 12.81 kB / 332.4 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.096e-05/0.2082, allocations: 24.28 kB / 332.5 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006301/0.2089, allocations: 195.4 kB / 332.7 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.465e-05/0.2089, allocations: 4 kB / 332.7 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.621e-05/0.209, allocations: 8 kB / 332.7 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.244e-05/0.209, allocations: 7.938 kB / 332.7 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004807/0.2095, allocations: 149.6 kB / 332.8 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001788/0.2113, allocations: 0.6268 MB / 333.4 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005604/0.2119, allocations: 183.5 kB / 333.6 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003078/0.2122, allocations: 92.83 kB / 333.7 MB, free: 13.84 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.705e-05/0.2123, allocations: 12.03 kB / 333.7 MB, free: 13.83 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.352e-05/0.2124, allocations: 30.56 kB / 333.8 MB, free: 13.79 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 3.787e-06/0.2124, allocations: 4 kB / 333.8 MB, free: 13.79 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.004058/0.2165, allocations: 1.073 MB / 334.8 MB, free: 12.62 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001402/0.2166, allocations: 63.34 kB / 334.9 MB, free: 12.55 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007541/0.2174, allocations: 178.9 kB / 335.1 MB, free: 12.36 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.515e-05/0.2175, allocations: 33.7 kB / 335.1 MB, free: 12.32 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000355/0.2179, allocations: 136.7 kB / 335.2 MB, free: 12.19 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002895/0.2182, allocations: 114.3 kB / 335.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002826/0.2185, allocations: 53.7 kB / 335.4 MB, free: 12.02 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0005063/0.2191, allocations: 330.8 kB / 335.7 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003655/0.2195, allocations: 75.97 kB / 335.8 MB, free: 11.61 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003734/0.2198, allocations: 110.3 kB / 335.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006881/0.2206, allocations: 191.5 kB / 336.1 MB, free: 11.3 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.2206, allocations: 7.938 kB / 336.1 MB, free: 11.29 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001048/0.2216, allocations: 295.1 kB / 336.4 MB, free: 10.99 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.824e-05/0.2217, allocations: 8 kB / 336.4 MB, free: 10.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.052e-05/0.2217, allocations: 3.984 kB / 336.4 MB, free: 10.98 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003741/0.2221, allocations: 44.78 kB / 336.4 MB, free: 10.93 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000502/0.2226, allocations: 55.97 kB / 336.5 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003686/0.2264, allocations: 1.74 MB / 338.2 MB, free: 8.996 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002733/0.2267, allocations: 8.031 kB / 338.2 MB, free: 8.988 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.863e-05/0.2267, allocations: 15.94 kB / 338.3 MB, free: 8.973 MB / 286.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.0003231/0.2271, allocations: 129.8 kB / 338.4 MB, free: 8.836 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.2272, allocations: 23.75 kB / 338.4 MB, free: 8.812 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001265/0.2273, allocations: 38.7 kB / 338.4 MB, free: 8.777 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.2273, allocations: 4 kB / 338.5 MB, free: 8.773 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-05/0.2274, allocations: 0 / 338.5 MB, free: 8.773 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.801e-05/0.2274, allocations: 0 / 338.5 MB, free: 8.773 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002118/0.2295, allocations: 0.7891 MB / 339.2 MB, free: 7.906 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.909e-06/0.2295, allocations: 3.984 kB / 339.2 MB, free: 7.902 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004424/0.23, allocations: 59.97 kB / 339.3 MB, free: 7.844 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002368/0.2303, allocations: 36.95 kB / 339.3 MB, free: 7.805 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.411e-05/0.2303, allocations: 16.09 kB / 339.4 MB, free: 7.789 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002367/0.2327, allocations: 1.485 MB / 340.8 MB, free: 6.164 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.2327, allocations: 0 / 340.8 MB, free: 6.164 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001386/0.2341, allocations: 482.5 kB / 341.3 MB, free: 5.664 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002305/0.2344, allocations: 96.83 kB / 341.4 MB, free: 5.551 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.033e-05/0.2345, allocations: 8 kB / 341.4 MB, free: 5.543 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002517/0.2347, allocations: 12.03 kB / 341.4 MB, free: 5.531 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001621/0.2349, allocations: 19.97 kB / 341.4 MB, free: 5.512 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.319e-05/0.235, allocations: 8 kB / 341.5 MB, free: 5.504 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002623/0.2352, allocations: 135.2 kB / 341.6 MB, free: 5.371 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2353, allocations: 0 / 341.6 MB, free: 5.371 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000847/0.2361, allocations: 64 kB / 341.6 MB, free: 5.309 MB / 286.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.002906/0.239, allocations: 1.021 MB / 342.7 MB, free: 4.25 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001287/0.2404, allocations: 342.5 kB / 343 MB, free: 3.902 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/0.2404, allocations: 0 / 343 MB, free: 3.902 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000633/0.241, allocations: 250.5 kB / 343.2 MB, free: 3.645 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009903/0.242, allocations: 50.52 kB / 343.3 MB, free: 3.598 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007441/0.2495, allocations: 2.751 MB / 346 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001035/0.2506, allocations: 0.7562 MB / 346.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002529/0.2509, allocations: 22.28 kB / 346.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002822/0.2512, allocations: 79.34 kB / 346.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of SimCode: time 8.466e-06/0.2513, allocations: 0 / 346.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05211/0.3034, allocations: 5.12 MB / 352 MB, free: 10.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.56/15.87, allocations: 8 kB / 352 MB, free: 10.66 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches