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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=2000,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=2000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001201/0.001201, allocations: 97.58 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001654/0.001655, allocations: 202.7 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.7 MB / 247.5 MB, free: 11.05 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002639/0.0002641, allocations: 8 kB / 308.4 MB, free: 0.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09854/0.09882, allocations: 51.52 MB / 359.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005728/0.1046, allocations: 4.975 MB / 364.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004045/0.1087, allocations: 2.075 MB / 367 MB, free: 6.145 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001009/0.1097, allocations: 31.81 kB / 367 MB, free: 6.113 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005577/0.1103, allocations: 166.8 kB / 367.1 MB, free: 5.949 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006283/0.1109, allocations: 142.8 kB / 367.3 MB, free: 5.809 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009845/0.1119, allocations: 339.4 kB / 367.6 MB, free: 5.477 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001283/0.1132, allocations: 0.9699 MB / 368.6 MB, free: 4.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008868/0.1141, allocations: 0.5435 MB / 369.1 MB, free: 3.941 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004507/0.1146, allocations: 246.9 kB / 369.4 MB, free: 3.699 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003703/0.115, allocations: 274.4 kB / 369.6 MB, free: 3.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.474e-05/0.1151, allocations: 32 kB / 369.7 MB, free: 3.398 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002599/0.1153, allocations: 91.91 kB / 369.8 MB, free: 3.309 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001709/0.1155, allocations: 127.4 kB / 369.9 MB, free: 3.184 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000382/0.1159, allocations: 375.7 kB / 370.3 MB, free: 2.809 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008711/0.1168, allocations: 0.8922 MB / 371.1 MB, free: 1.914 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.1168, allocations: 0 / 371.1 MB, free: 1.914 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.574e-06/0.1168, allocations: 4 kB / 371.1 MB, free: 1.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.991e-05/0.1168, allocations: 0 / 371.1 MB, free: 1.91 MB / 302.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.001392/0.1182, allocations: 0.8776 MB / 372 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.1183, allocations: 8.031 kB / 372 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002771/0.1186, allocations: 107.8 kB / 372.1 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007158/0.1193, allocations: 0.5024 MB / 372.6 MB, free: 332 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.415e-05/0.1194, allocations: 62.38 kB / 372.7 MB, free: 272 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.1195, allocations: 88.28 kB / 372.8 MB, free: 184 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1851/0.3046, allocations: 0.8001 MB / 373.6 MB, free: 19.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.318e-05/0.3047, allocations: 4.422 kB / 373.6 MB, free: 19.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.541e-05/0.3048, allocations: 34.16 kB / 373.6 MB, free: 19.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.47e-05/0.3048, allocations: 20.84 kB / 373.6 MB, free: 19.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001058/0.3059, allocations: 0.4979 MB / 374.1 MB, free: 19.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003651/0.3096, allocations: 2.902 MB / 377 MB, free: 17.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006157/0.3102, allocations: 225.8 kB / 377.3 MB, free: 17.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001913/0.3104, allocations: 114.3 kB / 377.4 MB, free: 17.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001928/0.3106, allocations: 249 kB / 377.6 MB, free: 17.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/0.3106, allocations: 36.3 kB / 377.7 MB, free: 17.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.775e-06/0.3107, allocations: 0 / 377.7 MB, free: 17.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002254/0.3129, allocations: 1.263 MB / 378.9 MB, free: 16.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.707e-05/0.313, allocations: 59.47 kB / 379 MB, free: 16.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002817/0.3132, allocations: 313 kB / 379.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.3133, allocations: 35.2 kB / 379.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001915/0.3135, allocations: 400.6 kB / 379.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.837e-05/0.3136, allocations: 133.7 kB / 379.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.294e-05/0.3136, allocations: 44.14 kB / 379.9 MB, free: 15.49 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.004e-05/0.3137, allocations: 348.8 kB / 380.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001963/0.3139, allocations: 108.2 kB / 380.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002524/0.3142, allocations: 255.2 kB / 380.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004635/0.3146, allocations: 397.1 kB / 381 MB, free: 14.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.3146, allocations: 1.531 kB / 381 MB, free: 14.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006918/0.3153, allocations: 461.8 kB / 381.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.3154, allocations: 7.641 kB / 381.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.3154, allocations: 10.92 kB / 381.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001913/0.3156, allocations: 38.86 kB / 381.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003366/0.3159, allocations: 112.5 kB / 381.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002879/0.3162, allocations: 0.5578 MB / 382.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001872/0.3164, allocations: 13.7 kB / 382.2 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.808e-05/0.3165, allocations: 21.41 kB / 382.2 MB, free: 13.82 MB / 302.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.0002744/0.3168, allocations: 226.5 kB / 382.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.16e-05/0.3168, allocations: 42.92 kB / 382.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005882/0.3174, allocations: 325.6 kB / 382.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.3174, allocations: 5.156 kB / 382.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3175, allocations: 4 kB / 382.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.3175, allocations: 5.5 kB / 382.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001425/0.3189, allocations: 1.035 MB / 383.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.3189, allocations: 3.125 kB / 383.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000343/0.3193, allocations: 81.05 kB / 383.9 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000125/0.3194, allocations: 34.92 kB / 383.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.227e-05/0.3194, allocations: 8.891 kB / 383.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002016/0.3196, allocations: 0.5513 MB / 384.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3196, allocations: 3.938 kB / 384.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007025/0.3204, allocations: 0.5518 MB / 385 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.451e-05/0.3204, allocations: 109.5 kB / 385.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.241e-05/0.3205, allocations: 11.59 kB / 385.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001467/0.3206, allocations: 10.28 kB / 385.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.055e-05/0.3207, allocations: 27.56 kB / 385.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-05/0.3207, allocations: 13.78 kB / 385.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001957/0.3209, allocations: 214.6 kB / 385.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3209, allocations: 0 / 385.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005336/0.3215, allocations: 124.7 kB / 385.5 MB, free: 11.63 MB / 302.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.0001532/0.3216, allocations: 115.3 kB / 385.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000575/0.3222, allocations: 311.1 kB / 386 MB, free: 11.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3222, allocations: 0.5938 kB / 386 MB, free: 11.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000255/0.3225, allocations: 143.8 kB / 386.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005856/0.3231, allocations: 67.61 kB / 386.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002847/0.3259, allocations: 2.128 MB / 388.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005032/0.3265, allocations: 0.9256 MB / 389.2 MB, free: 9.137 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.3266, allocations: 34.16 kB / 389.3 MB, free: 9.129 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3266, allocations: 2.531 kB / 389.3 MB, free: 9.129 MB / 302.1 MB Notification: Performance of Templates: time 0.01503/0.3416, allocations: 9.637 MB / 398.9 MB, free: 4.816 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (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 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches