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.001456/0.001456, allocations: 82.28 kB / 22.21 MB, free: 2.293 MB / 18.57 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.001716/0.001716, allocations: 145.2 kB / 25.59 MB, free: 8.918 MB / 18.57 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 0.9476/0.9476, allocations: 173.4 MB / 202.2 MB, free: 8.277 MB / 186.7 MB " [Timeout remaining time 179] 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 1.894e-06/1.894e-06, allocations: 0 / 269.2 MB, free: 9.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.785e-05/2.975e-05, allocations: 5.266 kB / 269.2 MB, free: 9.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006294/0.006324, allocations: 5.169 MB / 274.4 MB, free: 4.609 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002989/0.009313, allocations: 2.014 MB / 276.4 MB, free: 2.602 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007028/0.01002, allocations: 51.56 kB / 276.4 MB, free: 2.551 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004169/0.01043, allocations: 214.1 kB / 276.6 MB, free: 2.34 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00035/0.01078, allocations: 178.3 kB / 276.8 MB, free: 2.164 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007519/0.01153, allocations: 391 kB / 277.2 MB, free: 1.781 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008408/0.01238, allocations: 1.048 MB / 278.2 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005105/0.01289, allocations: 401.5 kB / 278.6 MB, free: 320 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005868/0.01347, allocations: 0.5224 MB / 279.1 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000296/0.01377, allocations: 275.2 kB / 279.4 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.962e-05/0.01385, allocations: 92 kB / 279.5 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001983/0.01405, allocations: 151.8 kB / 279.7 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001442/0.01419, allocations: 207.3 kB / 279.9 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002132/0.0144, allocations: 291.3 kB / 280.1 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007258/0.01513, allocations: 0.6809 MB / 280.8 MB, free: 14.11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.01514, allocations: 4 kB / 280.8 MB, free: 14.11 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.01514, allocations: 0 / 280.8 MB, free: 14.11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.01515, allocations: 4 kB / 280.8 MB, free: 14.1 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.001008/0.01616, allocations: 1.072 MB / 281.9 MB, free: 12.99 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.01619, allocations: 12.03 kB / 281.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001448/0.01634, allocations: 160.4 kB / 282.1 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004753/0.01681, allocations: 482.3 kB / 282.5 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.882e-05/0.01685, allocations: 66.38 kB / 282.6 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.964e-05/0.01693, allocations: 92.31 kB / 282.7 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006312/0.01756, allocations: 0.5988 MB / 283.3 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.661e-05/0.01759, allocations: 16.12 kB / 283.3 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.984e-05/0.01763, allocations: 40.36 kB / 283.3 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/0.01764, allocations: 23.94 kB / 283.4 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003043/0.01795, allocations: 233.6 kB / 283.6 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002236/0.02018, allocations: 2.865 MB / 286.5 MB, free: 8.238 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003301/0.02051, allocations: 167.6 kB / 286.6 MB, free: 8.059 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.011e-05/0.02057, allocations: 60.14 kB / 286.7 MB, free: 7.996 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.944e-05/0.02064, allocations: 15.98 kB / 286.7 MB, free: 7.98 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.475e-05/0.02067, allocations: 41.39 kB / 286.7 MB, free: 7.93 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.475e-06/0.02067, allocations: 0 / 286.7 MB, free: 7.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.001191/0.02186, allocations: 0.8423 MB / 287.6 MB, free: 7.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.02189, allocations: 55.41 kB / 287.6 MB, free: 6.953 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001296/0.02318, allocations: 346 kB / 288 MB, free: 6.602 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.871e-05/0.02321, allocations: 33.64 kB / 288 MB, free: 6.562 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002768/0.02349, allocations: 462.4 kB / 288.5 MB, free: 6.105 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000115/0.0236, allocations: 138.8 kB / 288.6 MB, free: 5.969 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.02373, allocations: 95.75 kB / 288.7 MB, free: 5.863 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.02392, allocations: 0.5234 MB / 289.2 MB, free: 5.328 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.02404, allocations: 44.95 kB / 289.3 MB, free: 5.285 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002188/0.02426, allocations: 249.5 kB / 289.5 MB, free: 4.965 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003688/0.02462, allocations: 337.1 kB / 289.8 MB, free: 4.551 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.02463, allocations: 0 / 289.8 MB, free: 4.551 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00057/0.0252, allocations: 368.2 kB / 290.2 MB, free: 4.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.02522, allocations: 8 kB / 290.2 MB, free: 4.172 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.02523, allocations: 4 kB / 290.2 MB, free: 4.168 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001844/0.02541, allocations: 31.67 kB / 290.2 MB, free: 4.133 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003432/0.02576, allocations: 111.8 kB / 290.3 MB, free: 4.023 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004345/0.02619, allocations: 0.8 MB / 291.1 MB, free: 3.191 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002009/0.02639, allocations: 20 kB / 291.2 MB, free: 3.172 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.029e-05/0.02643, allocations: 24.2 kB / 291.2 MB, free: 3.148 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.0002058/0.02664, allocations: 196.4 kB / 291.4 MB, free: 2.945 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.784e-05/0.02672, allocations: 47.77 kB / 291.4 MB, free: 2.898 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004584/0.02718, allocations: 240.8 kB / 291.7 MB, free: 2.648 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.02718, allocations: 4 kB / 291.7 MB, free: 2.645 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.02718, allocations: 0 / 291.7 MB, free: 2.645 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.02719, allocations: 7.922 kB / 291.7 MB, free: 2.637 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/0.02838, allocations: 0.7432 MB / 292.4 MB, free: 1.836 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.02839, allocations: 4 kB / 292.4 MB, free: 1.832 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003225/0.02871, allocations: 75.91 kB / 292.5 MB, free: 1.758 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001267/0.02884, allocations: 27.67 kB / 292.5 MB, free: 1.727 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.02886, allocations: 11.98 kB / 292.5 MB, free: 1.715 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002674/0.02913, allocations: 0.8001 MB / 293.3 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.02913, allocations: 7.922 kB / 293.3 MB, free: 0.875 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000385/0.02951, allocations: 495.9 kB / 293.8 MB, free: 348 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.332e-05/0.02956, allocations: 35.72 kB / 293.9 MB, free: 312 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.96e-05/0.02959, allocations: 8 kB / 293.9 MB, free: 304 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.933e-05/0.02967, allocations: 11.98 kB / 293.9 MB, free: 292 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.772e-05/0.0297, allocations: 31.89 kB / 293.9 MB, free: 260 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.02972, allocations: 7.938 kB / 293.9 MB, free: 252 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001189/0.02984, allocations: 222.9 kB / 294.1 MB, free: 32 kB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02984, allocations: 0 / 294.1 MB, free: 32 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003907/0.03023, allocations: 120 kB / 294.3 MB, free: 15.91 MB / 282.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.0001483/0.03037, allocations: 127.5 kB / 294.4 MB, free: 15.79 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002976/0.03067, allocations: 220.2 kB / 294.6 MB, free: 15.57 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.03067, allocations: 1.188 kB / 294.6 MB, free: 15.57 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001195/0.03079, allocations: 99.81 kB / 294.7 MB, free: 15.46 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.03113, allocations: 81.42 kB / 294.8 MB, free: 15.38 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001847/0.03298, allocations: 1.37 MB / 296.1 MB, free: 13.95 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.84e-05/0.03307, allocations: 153.6 kB / 296.3 MB, free: 13.79 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001178/0.03319, allocations: 45.22 kB / 296.3 MB, free: 13.74 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.03332, allocations: 138.2 kB / 296.5 MB, free: 13.6 MB / 282.7 MB Notification: Performance of SimCode: time 7.92e-07/0.03332, allocations: 0 / 296.5 MB, free: 13.6 MB / 282.7 MB Notification: Performance of Templates: time 0.007975/0.0413, allocations: 3.944 MB / 300.4 MB, free: 9.738 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.7887013675644994]