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.0009284/0.0009284, allocations: 84.73 kB / 21.5 MB, free: 2.992 MB / 18.57 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.001753/0.001753, allocations: 167.6 kB / 24.91 MB, free: 9.148 MB / 18.57 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 0.9747/0.9747, allocations: 177 MB / 205.2 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] 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 1.573e-06/1.573e-06, allocations: 0 / 273.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.39e-05/2.547e-05, allocations: 2.312 kB / 273.4 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005056/0.005082, allocations: 5.189 MB / 278.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003346/0.008428, allocations: 2.164 MB / 280.7 MB, free: 9.863 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005798/0.009008, allocations: 51.56 kB / 280.8 MB, free: 9.812 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003831/0.009391, allocations: 198.2 kB / 281 MB, free: 9.617 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003413/0.009732, allocations: 182.2 kB / 281.1 MB, free: 9.438 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007514/0.01048, allocations: 403 kB / 281.5 MB, free: 9.043 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009206/0.0114, allocations: 1.044 MB / 282.6 MB, free: 7.992 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000506/0.01191, allocations: 417.5 kB / 283 MB, free: 7.555 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006031/0.01251, allocations: 0.5302 MB / 283.5 MB, free: 7.023 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003157/0.01283, allocations: 279.2 kB / 283.8 MB, free: 6.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000178/0.01301, allocations: 92 kB / 283.9 MB, free: 6.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002134/0.01322, allocations: 155.8 kB / 284 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001331/0.01335, allocations: 207.3 kB / 284.2 MB, free: 6.305 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002119/0.01357, allocations: 291.3 kB / 284.5 MB, free: 6.02 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006808/0.01425, allocations: 0.681 MB / 285.2 MB, free: 5.336 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.01425, allocations: 0 / 285.2 MB, free: 5.336 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.01425, allocations: 0 / 285.2 MB, free: 5.336 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.941e-05/0.01427, allocations: 4 kB / 285.2 MB, free: 5.332 MB / 266.7 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.001058/0.01533, allocations: 0.9632 MB / 286.2 MB, free: 4.344 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.01537, allocations: 15.98 kB / 286.2 MB, free: 4.328 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002591/0.01563, allocations: 136.8 kB / 286.3 MB, free: 4.195 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005361/0.01617, allocations: 381 kB / 286.7 MB, free: 3.797 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.94e-05/0.01621, allocations: 66.38 kB / 286.8 MB, free: 3.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.052e-05/0.01629, allocations: 96.25 kB / 286.9 MB, free: 3.637 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005945/0.01688, allocations: 0.5907 MB / 287.4 MB, free: 3.008 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.522e-05/0.01691, allocations: 8.188 kB / 287.5 MB, free: 3 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.549e-05/0.01694, allocations: 36.38 kB / 287.5 MB, free: 2.965 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.01695, allocations: 23.94 kB / 287.5 MB, free: 2.941 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003131/0.01727, allocations: 216.5 kB / 287.7 MB, free: 2.727 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.01909, allocations: 2.159 MB / 289.9 MB, free: 488 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002779/0.01937, allocations: 147.2 kB / 290 MB, free: 324 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.086e-05/0.01942, allocations: 44.84 kB / 290.1 MB, free: 276 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.533e-05/0.01949, allocations: 19.97 kB / 290.1 MB, free: 256 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.19e-05/0.01951, allocations: 38.56 kB / 290.1 MB, free: 208 kB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.843e-06/0.01951, allocations: 0 / 290.1 MB, free: 208 kB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.1193/0.1388, allocations: 0.7992 MB / 290.9 MB, free: 26.38 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.896e-05/0.1389, allocations: 57 kB / 291 MB, free: 26.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000209/0.1391, allocations: 297.7 kB / 291.3 MB, free: 26.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.1391, allocations: 32.98 kB / 291.3 MB, free: 26.17 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.1392, allocations: 382.9 kB / 291.7 MB, free: 26 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.27e-05/0.1393, allocations: 144 kB / 291.8 MB, free: 25.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.603e-05/0.1394, allocations: 92.95 kB / 291.9 MB, free: 25.91 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.262e-05/0.1394, allocations: 351.8 kB / 292.3 MB, free: 25.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.836e-05/0.1395, allocations: 39.8 kB / 292.3 MB, free: 25.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.504e-05/0.1396, allocations: 188.3 kB / 292.5 MB, free: 25.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002282/0.1398, allocations: 283.4 kB / 292.8 MB, free: 25.27 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.1398, allocations: 2.031 kB / 292.8 MB, free: 25.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000315/0.1401, allocations: 281.8 kB / 293 MB, free: 25.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.1402, allocations: 13 kB / 293 MB, free: 25.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.1402, allocations: 4.5 kB / 293 MB, free: 25.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001388/0.1403, allocations: 28.72 kB / 293.1 MB, free: 25.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002141/0.1405, allocations: 112.5 kB / 293.2 MB, free: 25.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001841/0.1407, allocations: 0.5302 MB / 293.7 MB, free: 24.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/0.1408, allocations: 16.28 kB / 293.7 MB, free: 24.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.614e-05/0.1408, allocations: 16.81 kB / 293.7 MB, free: 24.7 MB / 266.7 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.0001295/0.141, allocations: 149.5 kB / 293.9 MB, free: 24.59 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.401e-05/0.141, allocations: 36.73 kB / 293.9 MB, free: 24.59 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002602/0.1413, allocations: 196.3 kB / 294.1 MB, free: 24.53 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.1413, allocations: 3.875 kB / 294.1 MB, free: 24.53 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.1413, allocations: 0.5469 kB / 294.1 MB, free: 24.53 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.1413, allocations: 7.125 kB / 294.1 MB, free: 24.53 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006666/0.142, allocations: 0.5681 MB / 294.7 MB, free: 24.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.142, allocations: 2.625 kB / 294.7 MB, free: 24.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000207/0.1422, allocations: 78.47 kB / 294.8 MB, free: 24.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.346e-05/0.1423, allocations: 27.48 kB / 294.8 MB, free: 24.27 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.1423, allocations: 9.516 kB / 294.8 MB, free: 24.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001246/0.1424, allocations: 0.5293 MB / 295.3 MB, free: 23.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1424, allocations: 2.812 kB / 295.3 MB, free: 23.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003092/0.1427, allocations: 376.4 kB / 295.7 MB, free: 23.56 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.198e-05/0.1427, allocations: 32.28 kB / 295.7 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.674e-05/0.1428, allocations: 8.656 kB / 295.8 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.346e-05/0.1428, allocations: 9.5 kB / 295.8 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.249e-05/0.1429, allocations: 31.23 kB / 295.8 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.1429, allocations: 14.44 kB / 295.8 MB, free: 23.54 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.455e-05/0.143, allocations: 108.7 kB / 295.9 MB, free: 23.52 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.143, allocations: 0 / 295.9 MB, free: 23.52 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003502/0.1434, allocations: 124.5 kB / 296 MB, free: 23.52 MB / 266.7 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.0001268/0.1435, allocations: 101.7 kB / 296.1 MB, free: 23.45 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002877/0.1438, allocations: 213.7 kB / 296.3 MB, free: 23.41 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/0.1438, allocations: 3.344 kB / 296.3 MB, free: 23.41 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.1439, allocations: 102 kB / 296.4 MB, free: 23.39 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002747/0.1442, allocations: 75.09 kB / 296.5 MB, free: 23.39 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.1456, allocations: 1.164 MB / 297.7 MB, free: 22.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001043/0.1457, allocations: 151.6 kB / 297.8 MB, free: 22.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001133/0.1458, allocations: 47.5 kB / 297.9 MB, free: 22.64 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.1459, allocations: 115.8 kB / 298 MB, free: 22.59 MB / 266.7 MB Notification: Performance of SimCode: time 1.202e-06/0.1459, allocations: 0 / 298 MB, free: 22.59 MB / 266.7 MB Notification: Performance of Templates: time 0.007897/0.1538, allocations: 3.875 MB / 301.9 MB, free: 22.02 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7319924887269735]