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.001643/0.001643, allocations: 108 kB / 20.43 MB, free: 1.473 MB / 14.72 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.001894/0.001894, allocations: 188 kB / 23.72 MB, free: 4.719 MB / 14.72 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 1.37/1.37, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 47.92 kB / 370.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2615, allocations: 52.18 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007831/0.2693, allocations: 5.483 MB / 428.1 MB, free: 9.078 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004352/0.2737, allocations: 2.087 MB / 430.2 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001067/0.2747, allocations: 47.62 kB / 430.2 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006944/0.2754, allocations: 210.2 kB / 430.4 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007456/0.2762, allocations: 182.4 kB / 430.6 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001244/0.2774, allocations: 414.8 kB / 431 MB, free: 6.141 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001598/0.279, allocations: 1.013 MB / 432 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008517/0.2799, allocations: 417.6 kB / 432.5 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005963/0.2805, allocations: 350.8 kB / 432.8 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006005/0.2811, allocations: 370.3 kB / 433.2 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001707/0.2812, allocations: 92 kB / 433.2 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003464/0.2816, allocations: 151.9 kB / 433.4 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002336/0.2818, allocations: 207.4 kB / 433.6 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005853/0.2824, allocations: 434 kB / 434 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001645/0.284, allocations: 1.183 MB / 435.2 MB, free: 1.934 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.284, allocations: 0 / 435.2 MB, free: 1.934 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2841, allocations: 0 / 435.2 MB, free: 1.934 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.617e-05/0.2841, allocations: 0 / 435.2 MB, free: 1.934 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.002039/0.2861, allocations: 0.9804 MB / 436.2 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.2862, allocations: 12.03 kB / 436.2 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001873/0.2864, allocations: 127.5 kB / 436.3 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001676/0.2866, allocations: 92.38 kB / 436.4 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009729/0.2875, allocations: 464.3 kB / 436.9 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.761e-05/0.2876, allocations: 62.38 kB / 436.9 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.2877, allocations: 88.33 kB / 437 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/0.2893, allocations: 0.8123 MB / 437.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.088e-05/0.2894, allocations: 7.953 kB / 437.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.515e-05/0.2894, allocations: 36 kB / 437.9 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.078e-05/0.2894, allocations: 20 kB / 437.9 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.2905, allocations: 0.4957 MB / 438.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003889/0.2944, allocations: 2.761 MB / 441.1 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006152/0.295, allocations: 210.6 kB / 441.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001925/0.2952, allocations: 97.31 kB / 441.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000124/0.2954, allocations: 19.98 kB / 441.5 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.2954, allocations: 38.56 kB / 441.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.024e-06/0.2954, allocations: 3.938 kB / 441.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002565/0.298, allocations: 1.108 MB / 442.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.386e-05/0.298, allocations: 55.41 kB / 442.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003867/0.2984, allocations: 300.5 kB / 443 MB, free: 9.859 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.975e-05/0.2984, allocations: 33.7 kB / 443 MB, free: 9.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003041/0.2987, allocations: 415.7 kB / 443.4 MB, free: 9.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.2989, allocations: 138.8 kB / 443.5 MB, free: 9.273 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.299, allocations: 90.14 kB / 443.6 MB, free: 9.176 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.2992, allocations: 354.7 kB / 444 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002265/0.2994, allocations: 105 kB / 444.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003316/0.2997, allocations: 254 kB / 444.3 MB, free: 8.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005863/0.3003, allocations: 388.9 kB / 444.7 MB, free: 7.969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3003, allocations: 0 / 444.7 MB, free: 7.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008225/0.3011, allocations: 465.8 kB / 445.2 MB, free: 7.504 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.3012, allocations: 15.34 kB / 445.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.3012, allocations: 4 kB / 445.2 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002231/0.3014, allocations: 32.84 kB / 445.2 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003935/0.3018, allocations: 111.8 kB / 445.3 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004688/0.3023, allocations: 0.5562 MB / 445.9 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.3025, allocations: 16 kB / 445.9 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.119e-05/0.3025, allocations: 23.98 kB / 445.9 MB, free: 6.723 MB / 350.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.0003772/0.3029, allocations: 228.8 kB / 446.1 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.303, allocations: 47.69 kB / 446.2 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007157/0.3037, allocations: 321.3 kB / 446.5 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.3038, allocations: 4 kB / 446.5 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3038, allocations: 0 / 446.5 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.3038, allocations: 8 kB / 446.5 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00171/0.3055, allocations: 0.9837 MB / 447.5 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.3055, allocations: 4 kB / 447.5 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003821/0.3059, allocations: 80.05 kB / 447.6 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001594/0.306, allocations: 32.84 kB / 447.6 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.046e-05/0.3061, allocations: 15.98 kB / 447.6 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004131/0.3065, allocations: 0.5484 MB / 448.2 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.3065, allocations: 0 / 448.2 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008512/0.3073, allocations: 0.549 MB / 448.7 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.572e-05/0.3074, allocations: 31.7 kB / 448.7 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.562e-05/0.3075, allocations: 15.98 kB / 448.8 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.3076, allocations: 12 kB / 448.8 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.3077, allocations: 23.95 kB / 448.8 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.57e-05/0.3078, allocations: 15.94 kB / 448.8 MB, free: 3.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002331/0.308, allocations: 207.1 kB / 449 MB, free: 3.461 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.308, allocations: 0 / 449 MB, free: 3.461 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005723/0.3086, allocations: 120 kB / 449.1 MB, free: 3.344 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.001244/0.3098, allocations: 1.108 MB / 450.2 MB, free: 2.188 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000669/0.3105, allocations: 287.8 kB / 450.5 MB, free: 1.906 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3105, allocations: 1.188 kB / 450.5 MB, free: 1.906 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002755/0.3108, allocations: 136.1 kB / 450.7 MB, free: 1.773 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005345/0.3113, allocations: 76.92 kB / 450.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006741/0.318, allocations: 4.389 MB / 455.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007127/0.3187, allocations: 0.9249 MB / 456 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001812/0.3189, allocations: 47.33 kB / 456.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003228/0.3192, allocations: 243.3 kB / 456.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3192, allocations: 0 / 456.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04543/0.3647, allocations: 8.707 MB / 465 MB, free: 3.297 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/12.9, allocations: 5.172 kB / 465 MB, free: 3.293 MB / 366.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.202628616942093]