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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 115.2 kB / 17.06 MB, free: 6 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.001247/0.001247, allocations: 193.4 kB / 18 MB, free: 5.074 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.411/1.411, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 51.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.2559, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007333/0.2633, allocations: 5.437 MB / 405.7 MB, free: 3.371 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004004/0.2673, allocations: 2.075 MB / 407.7 MB, free: 1.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000641/0.268, allocations: 39.75 kB / 407.8 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005171/0.2685, allocations: 202.3 kB / 408 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003911/0.2689, allocations: 174.4 kB / 408.1 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000889/0.2698, allocations: 391.1 kB / 408.5 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001266/0.2711, allocations: 1.025 MB / 409.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009082/0.272, allocations: 0.6065 MB / 410.2 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004217/0.2725, allocations: 338.9 kB / 410.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004262/0.2729, allocations: 362.3 kB / 410.8 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001256/0.273, allocations: 92 kB / 410.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002671/0.2733, allocations: 151.9 kB / 411.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002215/0.2735, allocations: 203.4 kB / 411.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006022/0.2742, allocations: 430 kB / 411.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001496/0.2757, allocations: 1.186 MB / 412.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.2757, allocations: 0 / 412.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2757, allocations: 4 kB / 412.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.309e-05/0.2757, allocations: 0 / 412.9 MB, free: 12.09 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.001869/0.2776, allocations: 1.048 MB / 413.9 MB, free: 10.99 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.2776, allocations: 11.89 kB / 413.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001928/0.2778, allocations: 131.5 kB / 414.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/0.278, allocations: 92.38 kB / 414.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008791/0.2789, allocations: 0.53 MB / 414.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.658e-05/0.279, allocations: 70.38 kB / 414.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/0.2791, allocations: 88.33 kB / 414.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001504/0.2806, allocations: 0.8085 MB / 415.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.514e-05/0.2807, allocations: 3.953 kB / 415.7 MB, free: 9.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.847e-05/0.2807, allocations: 36 kB / 415.7 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.243e-05/0.2808, allocations: 20 kB / 415.7 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001149/0.2819, allocations: 0.4957 MB / 416.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003768/0.2857, allocations: 2.861 MB / 419.1 MB, free: 5.645 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006573/0.2864, allocations: 233 kB / 419.3 MB, free: 5.406 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001956/0.2866, allocations: 101.3 kB / 419.4 MB, free: 5.305 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002641/0.2869, allocations: 247.3 kB / 419.6 MB, free: 5.008 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.7e-05/0.2869, allocations: 38.56 kB / 419.7 MB, free: 4.961 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.944e-06/0.2869, allocations: 7.938 kB / 419.7 MB, free: 4.953 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002617/0.2895, allocations: 1.254 MB / 420.9 MB, free: 3.602 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.408e-05/0.2896, allocations: 55.39 kB / 421 MB, free: 3.535 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003714/0.29, allocations: 312.5 kB / 421.3 MB, free: 3.219 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.671e-05/0.29, allocations: 29.7 kB / 421.3 MB, free: 3.184 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003184/0.2903, allocations: 415.7 kB / 421.7 MB, free: 2.773 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.2905, allocations: 138.8 kB / 421.9 MB, free: 2.637 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.2906, allocations: 86.22 kB / 421.9 MB, free: 2.547 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001899/0.2908, allocations: 354.7 kB / 422.3 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002078/0.291, allocations: 105.1 kB / 422.4 MB, free: 2.086 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003393/0.2914, allocations: 250.7 kB / 422.6 MB, free: 1.781 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000575/0.292, allocations: 392.8 kB / 423 MB, free: 1.336 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.292, allocations: 4 kB / 423 MB, free: 1.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007726/0.2927, allocations: 461.1 kB / 423.5 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.2928, allocations: 8 kB / 423.5 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.2928, allocations: 4 kB / 423.5 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002344/0.293, allocations: 33.44 kB / 423.5 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004406/0.2935, allocations: 119.8 kB / 423.6 MB, free: 0.707 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004639/0.294, allocations: 0.5523 MB / 424.2 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001839/0.2942, allocations: 16 kB / 424.2 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.231e-05/0.2942, allocations: 24 kB / 424.2 MB, free: 92 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.00037/0.2946, allocations: 225.7 kB / 424.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.758e-05/0.2947, allocations: 39.7 kB / 424.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006569/0.2953, allocations: 324.5 kB / 424.8 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.2953, allocations: 4 kB / 424.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.2954, allocations: 4 kB / 424.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.2954, allocations: 3.984 kB / 424.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001509/0.2969, allocations: 1.015 MB / 425.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.2969, allocations: 7.984 kB / 425.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003508/0.2973, allocations: 71.91 kB / 425.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001326/0.2974, allocations: 32.84 kB / 425.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.917e-05/0.2974, allocations: 15.98 kB / 426 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005091/0.298, allocations: 0.5525 MB / 426.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.298, allocations: 0 / 426.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000962/0.2989, allocations: 0.5489 MB / 427.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.2991, allocations: 108.9 kB / 427.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.716e-05/0.2991, allocations: 8 kB / 427.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.2993, allocations: 12 kB / 427.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.507e-05/0.2994, allocations: 20.06 kB / 427.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.578e-05/0.2994, allocations: 19.94 kB / 427.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002867/0.2997, allocations: 211.1 kB / 427.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2997, allocations: 0 / 427.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005217/0.3002, allocations: 119.9 kB / 427.6 MB, free: 12.59 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.001231/0.3015, allocations: 1.12 MB / 428.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006362/0.3021, allocations: 303.7 kB / 429 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3021, allocations: 0 / 429 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002786/0.3024, allocations: 141.2 kB / 429.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005143/0.3029, allocations: 78.91 kB / 429.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00632/0.3093, allocations: 4.394 MB / 433.6 MB, free: 6.289 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005958/0.3099, allocations: 0.921 MB / 434.5 MB, free: 5.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001683/0.3101, allocations: 43.34 kB / 434.5 MB, free: 5.297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002901/0.3104, allocations: 239.3 kB / 434.8 MB, free: 5.062 MB / 350.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3104, allocations: 0 / 434.8 MB, free: 5.062 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0366/0.347, allocations: 8.315 MB / 443.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.38, allocations: 0 / 443.1 MB, free: 12.93 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv","/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