Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.001922/0.001922, allocations: 76.05 kB / 21.24 MB, free: 400 kB / 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.001754/0.001754, allocations: 161.5 kB / 24.49 MB, free: 3.461 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.411/1.411, allocations: 173.4 MB / 201 MB, free: 12.7 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: translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 48.33 kB / 319.4 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08813/0.08971, allocations: 52.17 MB / 371.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007054/0.09676, allocations: 4.824 MB / 376.4 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003518/0.1003, allocations: 1.99 MB / 378.4 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000375/0.1007, allocations: 51.56 kB / 378.4 MB, free: 468 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004536/0.1011, allocations: 202.2 kB / 378.6 MB, free: 264 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003463/0.1015, allocations: 178.4 kB / 378.8 MB, free: 84 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009137/0.1024, allocations: 391.1 kB / 379.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001139/0.1035, allocations: 1.021 MB / 380.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006468/0.1042, allocations: 397.5 kB / 380.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003991/0.1046, allocations: 346.9 kB / 380.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004218/0.105, allocations: 310.3 kB / 381.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001172/0.1051, allocations: 92 kB / 381.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002628/0.1054, allocations: 155.9 kB / 381.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002111/0.1056, allocations: 207.4 kB / 381.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003624/0.1059, allocations: 338.5 kB / 382 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001321/0.1072, allocations: 1.191 MB / 383.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1073, allocations: 7.938 kB / 383.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1073, allocations: 0 / 383.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.278e-05/0.1073, allocations: 0 / 383.2 MB, free: 11.64 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001509/0.1088, allocations: 0.9765 MB / 384.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.1088, allocations: 8.922 kB / 384.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001446/0.109, allocations: 92.38 kB / 384.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008026/0.1098, allocations: 452.4 kB / 384.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.602e-05/0.1098, allocations: 66.38 kB / 384.8 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.11, allocations: 96.25 kB / 384.9 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.1114, allocations: 0.8087 MB / 385.7 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.437e-05/0.1114, allocations: 11.83 kB / 385.7 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.364e-05/0.1115, allocations: 36 kB / 385.7 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.333e-05/0.1115, allocations: 24 kB / 385.8 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.1125, allocations: 495.6 kB / 386.3 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003248/0.1157, allocations: 2.485 MB / 388.7 MB, free: 5.918 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005454/0.1163, allocations: 211.1 kB / 388.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000188/0.1165, allocations: 96.81 kB / 389 MB, free: 5.602 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.533e-05/0.1166, allocations: 15.98 kB / 389.1 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.1166, allocations: 42.5 kB / 389.1 MB, free: 5.535 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.563e-06/0.1166, allocations: 0 / 389.1 MB, free: 5.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002442/0.1191, allocations: 1.112 MB / 390.2 MB, free: 4.363 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/0.1191, allocations: 55.41 kB / 390.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003521/0.1195, allocations: 308.4 kB / 390.6 MB, free: 3.988 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/0.1195, allocations: 29.7 kB / 390.6 MB, free: 3.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002991/0.1198, allocations: 411.7 kB / 391 MB, free: 3.547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.1199, allocations: 138.8 kB / 391.1 MB, free: 3.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.12, allocations: 86.14 kB / 391.2 MB, free: 3.316 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.1202, allocations: 354.7 kB / 391.6 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002171/0.1204, allocations: 105 kB / 391.7 MB, free: 2.859 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003295/0.1207, allocations: 254 kB / 391.9 MB, free: 2.555 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006155/0.1214, allocations: 392.9 kB / 392.3 MB, free: 2.109 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1214, allocations: 0 / 392.3 MB, free: 2.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007823/0.1221, allocations: 457.3 kB / 392.7 MB, free: 1.652 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.1222, allocations: 11.98 kB / 392.8 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.1222, allocations: 4.594 kB / 392.8 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001762/0.1224, allocations: 36.84 kB / 392.8 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003686/0.1227, allocations: 115.8 kB / 392.9 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004419/0.1232, allocations: 0.5562 MB / 393.5 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001753/0.1233, allocations: 16 kB / 393.5 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.118e-05/0.1234, allocations: 23.98 kB / 393.5 MB, free: 0.8633 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002673/0.1236, allocations: 217.7 kB / 393.7 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.76e-05/0.1237, allocations: 39.75 kB / 393.8 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006357/0.1243, allocations: 334 kB / 394.1 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.804e-06/0.1244, allocations: 8.031 kB / 394.1 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1244, allocations: 0 / 394.1 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1244, allocations: 0 / 394.1 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001409/0.1258, allocations: 0.8555 MB / 394.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.1258, allocations: 0 / 394.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003684/0.1261, allocations: 80.06 kB / 395 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001179/0.1263, allocations: 36.83 kB / 395.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.329e-05/0.1263, allocations: 8 kB / 395.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000383/0.1267, allocations: 0.5561 MB / 395.6 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.1267, allocations: 8.031 kB / 395.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007959/0.1275, allocations: 0.5489 MB / 396.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.737e-05/0.1275, allocations: 39.7 kB / 396.2 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.305e-05/0.1276, allocations: 8 kB / 396.2 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001518/0.1277, allocations: 12.06 kB / 396.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.23e-05/0.1278, allocations: 23.95 kB / 396.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-05/0.1278, allocations: 8 kB / 396.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002128/0.128, allocations: 215.1 kB / 396.5 MB, free: 13.74 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.128, allocations: 0 / 396.5 MB, free: 13.74 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004711/0.1285, allocations: 116 kB / 396.6 MB, free: 13.62 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * 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 (33): * Single equations (assignments): 32 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001647/0.1286, allocations: 123.2 kB / 396.7 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006022/0.1292, allocations: 295.6 kB / 397 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1293, allocations: 0 / 397 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002881/0.1295, allocations: 133.2 kB / 397.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004892/0.13, allocations: 72.34 kB / 397.2 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002474/0.1325, allocations: 1.579 MB / 398.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003712/0.1329, allocations: 337.4 kB / 399.1 MB, free: 11.03 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000146/0.133, allocations: 43.53 kB / 399.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.645e-05/0.1331, allocations: 28.5 kB / 399.2 MB, free: 10.96 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1331, allocations: 3.938 kB / 399.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of Templates: time 0.009035/0.1421, allocations: 3.533 MB / 402.7 MB, free: 7.492 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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: 4.294444054015912]