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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 112.3 kB / 17.74 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 187 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009605/0.0009606, allocations: 47.92 kB / 352 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3056, allocations: 49.42 MB / 401.4 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007081/0.3128, allocations: 5.444 MB / 406.8 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003896/0.3167, allocations: 2.067 MB / 408.9 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009123/0.3177, allocations: 39.81 kB / 408.9 MB, free: 1.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005085/0.3182, allocations: 210.2 kB / 409.1 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005003/0.3188, allocations: 170.4 kB / 409.3 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00106/0.3199, allocations: 387.1 kB / 409.7 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001123/0.321, allocations: 1.025 MB / 410.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009108/0.3219, allocations: 0.6065 MB / 411.3 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004916/0.3224, allocations: 346.8 kB / 411.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004779/0.3229, allocations: 366.2 kB / 412 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001106/0.323, allocations: 92 kB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002638/0.3233, allocations: 148 kB / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001753/0.3235, allocations: 207.4 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003344/0.3238, allocations: 430 kB / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001076/0.3249, allocations: 1.185 MB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.3249, allocations: 4 kB / 414.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3249, allocations: 0 / 414.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.3249, allocations: 0 / 414.1 MB, free: 12.15 MB / 334.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.001514/0.3265, allocations: 1.022 MB / 415.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.3265, allocations: 15.97 kB / 415.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.3267, allocations: 83.91 kB / 415.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007225/0.3274, allocations: 0.5219 MB / 415.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.068e-05/0.3275, allocations: 66.38 kB / 415.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/0.3276, allocations: 88.38 kB / 415.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.329, allocations: 0.8125 MB / 416.7 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.076e-05/0.329, allocations: 3.906 kB / 416.7 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.726e-05/0.3291, allocations: 36 kB / 416.7 MB, free: 9.387 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.66e-05/0.3291, allocations: 24 kB / 416.7 MB, free: 9.363 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009284/0.3301, allocations: 0.4918 MB / 417.2 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00307/0.3331, allocations: 2.856 MB / 420.1 MB, free: 5.891 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005381/0.3337, allocations: 222.7 kB / 420.3 MB, free: 5.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001654/0.3339, allocations: 101.3 kB / 420.4 MB, free: 5.559 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002203/0.3341, allocations: 255.2 kB / 420.6 MB, free: 5.254 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.649e-05/0.3341, allocations: 38.56 kB / 420.7 MB, free: 5.207 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.384e-06/0.3342, allocations: 4 kB / 420.7 MB, free: 5.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002309/0.3365, allocations: 1.249 MB / 421.9 MB, free: 3.855 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.3365, allocations: 55.41 kB / 422 MB, free: 3.789 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003562/0.3369, allocations: 304.5 kB / 422.3 MB, free: 3.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.3369, allocations: 29.7 kB / 422.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002645/0.3372, allocations: 406.4 kB / 422.7 MB, free: 3.043 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.3373, allocations: 134.1 kB / 422.8 MB, free: 2.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.3374, allocations: 86.17 kB / 422.9 MB, free: 2.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.3376, allocations: 354.7 kB / 423.3 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001931/0.3378, allocations: 105.1 kB / 423.4 MB, free: 2.359 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003118/0.3381, allocations: 254.7 kB / 423.6 MB, free: 2.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000504/0.3386, allocations: 388.9 kB / 424 MB, free: 1.609 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3386, allocations: 0 / 424 MB, free: 1.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006892/0.3393, allocations: 468.9 kB / 424.5 MB, free: 1.141 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.3394, allocations: 7.938 kB / 424.5 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.036e-06/0.3394, allocations: 4 kB / 424.5 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002021/0.3396, allocations: 37.44 kB / 424.5 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003346/0.3399, allocations: 115.8 kB / 424.6 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004158/0.3404, allocations: 0.5562 MB / 425.2 MB, free: 404 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001771/0.3406, allocations: 12 kB / 425.2 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.889e-05/0.3406, allocations: 24 kB / 425.2 MB, free: 368 kB / 334.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.0002933/0.3409, allocations: 223.3 kB / 425.4 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.863e-05/0.341, allocations: 39.59 kB / 425.5 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005897/0.3416, allocations: 328.6 kB / 425.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.3416, allocations: 4 kB / 425.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3416, allocations: 0 / 425.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.3416, allocations: 7.984 kB / 425.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001326/0.3429, allocations: 1.012 MB / 426.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3429, allocations: 4 kB / 426.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003397/0.3433, allocations: 79.91 kB / 426.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001228/0.3434, allocations: 28.84 kB / 426.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.3435, allocations: 15.98 kB / 426.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003155/0.3438, allocations: 0.5486 MB / 427.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.3438, allocations: 3.938 kB / 427.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007407/0.3445, allocations: 0.5489 MB / 428 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.648e-05/0.3446, allocations: 112.6 kB / 428.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.573e-05/0.3447, allocations: 8 kB / 428.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000146/0.3448, allocations: 4 kB / 428.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.419e-05/0.3449, allocations: 23.97 kB / 428.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.322e-05/0.3449, allocations: 20 kB / 428.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000204/0.3451, allocations: 211 kB / 428.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3452, allocations: 0 / 428.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005112/0.3457, allocations: 116 kB / 428.5 MB, free: 12.87 MB / 350.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.000178/0.3459, allocations: 123.3 kB / 428.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005796/0.3464, allocations: 307.6 kB / 428.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3465, allocations: 8.062 kB / 429 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002421/0.3467, allocations: 145.2 kB / 429.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005325/0.3472, allocations: 71.8 kB / 429.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002542/0.3498, allocations: 1.601 MB / 430.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005725/0.3504, allocations: 0.9171 MB / 431.7 MB, free: 9.625 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.642e-05/0.3505, allocations: 35.44 kB / 431.7 MB, free: 9.59 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3505, allocations: 0 / 431.7 MB, free: 9.59 MB / 350.1 MB Notification: Performance of Templates: time 0.01322/0.3637, allocations: 9.896 MB / 441.6 MB, free: 15.7 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (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 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) 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) Reference file matches