Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00201/0.00201, allocations: 120.1 kB / 17.78 MB, free: 5.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002578/0.002578, allocations: 198.8 kB / 20.73 MB, free: 2.289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 225.6 MB / 249.1 MB, free: 3.594 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001726/0.001726, allocations: 47.92 kB / 365.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.107, allocations: 52.15 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003804/0.1108, allocations: 2.361 MB / 420.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.1119, allocations: 0.5881 MB / 420.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001672/0.1121, allocations: 7.938 kB / 420.7 MB, free: 9.641 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001598/0.1122, allocations: 39.64 kB / 420.8 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001936/0.1124, allocations: 79.27 kB / 420.8 MB, free: 9.523 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002169/0.1126, allocations: 51.94 kB / 420.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003422/0.113, allocations: 274.7 kB / 421.2 MB, free: 9.203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001901/0.1132, allocations: 70.77 kB / 421.2 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001811/0.1134, allocations: 115.6 kB / 421.3 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001664/0.1135, allocations: 107.5 kB / 421.5 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.718e-05/0.1136, allocations: 28 kB / 421.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.469e-05/0.1136, allocations: 20 kB / 421.5 MB, free: 8.867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.276e-05/0.1137, allocations: 51.77 kB / 421.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.1138, allocations: 127.4 kB / 421.7 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003548/0.1141, allocations: 258.8 kB / 421.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1141, allocations: 4 kB / 421.9 MB, free: 8.434 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1141, allocations: 0 / 421.9 MB, free: 8.434 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.1141, allocations: 0 / 421.9 MB, free: 8.434 MB / 350.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.0008503/0.115, allocations: 0.5299 MB / 422.5 MB, free: 7.855 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.115, allocations: 11.89 kB / 422.5 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.878e-05/0.1151, allocations: 58.73 kB / 422.5 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.641e-05/0.1152, allocations: 28.75 kB / 422.6 MB, free: 7.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003959/0.1156, allocations: 237.4 kB / 422.8 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.1156, allocations: 16.81 kB / 422.8 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.683e-05/0.1157, allocations: 32.33 kB / 422.8 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003972/0.116, allocations: 211.3 kB / 423 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.1161, allocations: 0 / 423 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.393e-05/0.1161, allocations: 12 kB / 423.1 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.1161, allocations: 4 kB / 423.1 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002941/0.1164, allocations: 141.6 kB / 423.2 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001098/0.1175, allocations: 0.6231 MB / 423.8 MB, free: 6.387 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003918/0.1179, allocations: 173 kB / 424 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001781/0.1181, allocations: 92.75 kB / 424.1 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.077e-05/0.1181, allocations: 4 kB / 424.1 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.1181, allocations: 30.56 kB / 424.1 MB, free: 6.074 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.393e-06/0.1181, allocations: 0 / 424.1 MB, free: 6.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002094/0.1202, allocations: 1.068 MB / 425.2 MB, free: 4.918 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.715e-05/0.1203, allocations: 59.34 kB / 425.2 MB, free: 4.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000196/0.1205, allocations: 187.1 kB / 425.4 MB, free: 4.652 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.1205, allocations: 29.7 kB / 425.5 MB, free: 4.617 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.1206, allocations: 140.8 kB / 425.6 MB, free: 4.473 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.698e-05/0.1207, allocations: 122.9 kB / 425.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.863e-05/0.1208, allocations: 53.7 kB / 425.8 MB, free: 4.293 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.1209, allocations: 334.8 kB / 426.1 MB, free: 3.957 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.1211, allocations: 63.97 kB / 426.2 MB, free: 3.895 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001849/0.1213, allocations: 114.9 kB / 426.3 MB, free: 3.773 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003321/0.1216, allocations: 193.3 kB / 426.5 MB, free: 3.578 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.1216, allocations: 0 / 426.5 MB, free: 3.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000552/0.1222, allocations: 298.2 kB / 426.7 MB, free: 3.277 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.1222, allocations: 8.062 kB / 426.8 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.1222, allocations: 0 / 426.8 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001858/0.1224, allocations: 44.83 kB / 426.8 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002518/0.1226, allocations: 59.91 kB / 426.9 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001764/0.1244, allocations: 1.736 MB / 428.6 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001483/0.1245, allocations: 12.02 kB / 428.6 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.587e-05/0.1246, allocations: 12 kB / 428.6 MB, free: 1.27 MB / 350.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.000161/0.1247, allocations: 141.8 kB / 428.8 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.799e-05/0.1248, allocations: 23.8 kB / 428.8 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.922e-05/0.1248, allocations: 34.64 kB / 428.8 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.1248, allocations: 4 kB / 428.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.1249, allocations: 0 / 428.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.1249, allocations: 4 kB / 428.8 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00128/0.1261, allocations: 0.7776 MB / 429.6 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.1261, allocations: 0 / 429.6 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002821/0.1264, allocations: 63.91 kB / 429.7 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000138/0.1266, allocations: 36.77 kB / 429.7 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.314e-05/0.1266, allocations: 8.094 kB / 429.7 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001426/0.128, allocations: 1.5 MB / 431.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.128, allocations: 0 / 431.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007825/0.1288, allocations: 482.6 kB / 431.7 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.1289, allocations: 108.9 kB / 431.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.261e-05/0.1289, allocations: 8 kB / 431.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001428/0.1291, allocations: 8 kB / 431.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.235e-05/0.1292, allocations: 19.97 kB / 431.8 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.1292, allocations: 8 kB / 431.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001385/0.1293, allocations: 131.2 kB / 431.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1293, allocations: 0 / 431.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004212/0.1297, allocations: 68 kB / 432 MB, free: 13.58 MB / 366.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.00125/0.131, allocations: 1.032 MB / 433 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007108/0.1317, allocations: 323.6 kB / 433.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.1317, allocations: 0 / 433.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003789/0.1321, allocations: 230.8 kB / 433.6 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004665/0.1325, allocations: 58.14 kB / 433.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003981/0.1365, allocations: 2.742 MB / 436.4 MB, free: 9.027 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004618/0.137, allocations: 0.7564 MB / 437.1 MB, free: 8.246 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001016/0.1371, allocations: 18.3 kB / 437.2 MB, free: 8.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001348/0.1372, allocations: 75.41 kB / 437.2 MB, free: 8.156 MB / 366.1 MB Notification: Performance of SimCode: time 1.372e-06/0.1372, allocations: 0 / 437.2 MB, free: 8.156 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03774/0.175, allocations: 5.295 MB / 442.5 MB, free: 2.973 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.56, allocations: 6.75 kB / 442.5 MB, free: 2.969 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.csv","/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_4.0.0_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.260724946856499]