Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001259/0.001259, allocations: 75.75 kB / 21.25 MB, free: 396 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001365/0.001365, allocations: 159.7 kB / 24.49 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 177.1 MB / 204.7 MB, free: 8.977 MB / 190.1 MB " [Timeout remaining time 178] 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: 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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 58 kB / 325.5 MB, free: 204 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09698/0.09892, allocations: 53.4 MB / 378.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007283/0.1062, allocations: 4.845 MB / 383.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004173/0.1104, allocations: 2.052 MB / 385.8 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007921/0.1112, allocations: 51.56 kB / 385.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005364/0.1117, allocations: 206.2 kB / 386.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004246/0.1121, allocations: 170.4 kB / 386.2 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009539/0.1131, allocations: 411 kB / 386.6 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001027/0.1141, allocations: 1.013 MB / 387.6 MB, free: 6.707 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006189/0.1147, allocations: 389.5 kB / 388 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004844/0.1152, allocations: 366.7 kB / 388.4 MB, free: 5.945 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004079/0.1156, allocations: 314.4 kB / 388.7 MB, free: 5.637 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001191/0.1157, allocations: 92 kB / 388.8 MB, free: 5.547 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002811/0.116, allocations: 155.9 kB / 388.9 MB, free: 5.395 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001997/0.1162, allocations: 203.3 kB / 389.1 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003496/0.1166, allocations: 350.5 kB / 389.5 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001225/0.1178, allocations: 1.194 MB / 390.7 MB, free: 3.652 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1178, allocations: 4 kB / 390.7 MB, free: 3.648 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1178, allocations: 0 / 390.7 MB, free: 3.648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.184e-05/0.1178, allocations: 0 / 390.7 MB, free: 3.648 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.001455/0.1193, allocations: 0.9765 MB / 391.6 MB, free: 2.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.1193, allocations: 11.98 kB / 391.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002507/0.1196, allocations: 96.38 kB / 391.7 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008162/0.1204, allocations: 480.2 kB / 392.2 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.783e-05/0.1204, allocations: 58.38 kB / 392.3 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000118/0.1205, allocations: 88.33 kB / 392.4 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001373/0.1219, allocations: 0.8047 MB / 393.2 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.646e-05/0.122, allocations: 11.92 kB / 393.2 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.251e-05/0.122, allocations: 36 kB / 393.2 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.976e-05/0.122, allocations: 20 kB / 393.2 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009741/0.123, allocations: 499.6 kB / 393.7 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003092/0.1261, allocations: 2.478 MB / 396.2 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005493/0.1267, allocations: 211.1 kB / 396.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001985/0.1269, allocations: 97.31 kB / 396.5 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001044/0.127, allocations: 15.98 kB / 396.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/0.127, allocations: 42.5 kB / 396.6 MB, free: 13.53 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.923e-06/0.127, allocations: 0 / 396.6 MB, free: 13.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002658/0.1296, allocations: 1.117 MB / 397.7 MB, free: 12.36 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/0.1297, allocations: 55.41 kB / 397.7 MB, free: 12.29 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004025/0.1301, allocations: 321.5 kB / 398 MB, free: 11.97 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.1301, allocations: 33.7 kB / 398.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002662/0.1304, allocations: 407.7 kB / 398.5 MB, free: 11.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.1305, allocations: 146.7 kB / 398.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001499/0.1306, allocations: 94.14 kB / 398.7 MB, free: 11.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.1308, allocations: 354.7 kB / 399.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002088/0.131, allocations: 105 kB / 399.2 MB, free: 10.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003151/0.1313, allocations: 254.1 kB / 399.4 MB, free: 10.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005497/0.1319, allocations: 392.6 kB / 399.8 MB, free: 10.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1319, allocations: 0 / 399.8 MB, free: 10.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009266/0.1328, allocations: 454 kB / 400.2 MB, free: 9.613 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.1328, allocations: 8 kB / 400.2 MB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.1328, allocations: 12.02 kB / 400.3 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002037/0.133, allocations: 36.78 kB / 400.3 MB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003525/0.1334, allocations: 107.9 kB / 400.4 MB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000416/0.1338, allocations: 0.5562 MB / 400.9 MB, free: 8.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001884/0.134, allocations: 16 kB / 401 MB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.237e-05/0.134, allocations: 20 kB / 401 MB, free: 8.832 MB / 366.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.0003068/0.1343, allocations: 217.7 kB / 401.2 MB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.558e-05/0.1344, allocations: 39.83 kB / 401.2 MB, free: 8.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000643/0.1351, allocations: 334.1 kB / 401.6 MB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.1351, allocations: 12.02 kB / 401.6 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/0.1351, allocations: 0 / 401.6 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.1351, allocations: 0 / 401.6 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001335/0.1364, allocations: 0.852 MB / 402.4 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.1364, allocations: 0 / 402.4 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000358/0.1368, allocations: 75.91 kB / 402.5 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001337/0.1369, allocations: 36.83 kB / 402.5 MB, free: 7.207 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.74e-05/0.1369, allocations: 8 kB / 402.5 MB, free: 7.199 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003681/0.1373, allocations: 0.5562 MB / 403.1 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1373, allocations: 0 / 403.1 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007702/0.1381, allocations: 0.5407 MB / 403.6 MB, free: 6.039 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.396e-05/0.1381, allocations: 39.8 kB / 403.7 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.529e-05/0.1382, allocations: 8 kB / 403.7 MB, free: 5.992 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001506/0.1383, allocations: 12 kB / 403.7 MB, free: 5.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.771e-05/0.1384, allocations: 19.95 kB / 403.7 MB, free: 5.961 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.59e-05/0.1384, allocations: 16 kB / 403.7 MB, free: 5.945 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002212/0.1386, allocations: 215.2 kB / 403.9 MB, free: 5.738 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1386, allocations: 0 / 403.9 MB, free: 5.738 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005362/0.1392, allocations: 123.9 kB / 404.1 MB, free: 5.617 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.0001695/0.1394, allocations: 123.2 kB / 404.2 MB, free: 5.488 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006053/0.14, allocations: 287.9 kB / 404.5 MB, free: 5.207 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.14, allocations: 192 / 404.5 MB, free: 5.207 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000265/0.1402, allocations: 137.2 kB / 404.6 MB, free: 5.074 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005023/0.1407, allocations: 87.92 kB / 404.7 MB, free: 4.996 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002492/0.1432, allocations: 1.589 MB / 406.3 MB, free: 3.359 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003526/0.1436, allocations: 329.8 kB / 406.6 MB, free: 3.012 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000147/0.1437, allocations: 43.34 kB / 406.6 MB, free: 2.965 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.779e-05/0.1438, allocations: 36.44 kB / 406.7 MB, free: 2.93 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1438, allocations: 0 / 406.7 MB, free: 2.93 MB / 366.1 MB Notification: Performance of Templates: time 0.00896/0.1527, allocations: 3.527 MB / 410.2 MB, free: 15.46 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.353911972022615]