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.001564/0.001565, allocations: 102.4 kB / 16.5 MB, free: 6.641 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.001624/0.001624, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.274/1.274, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009536/0.0009536, allocations: 44.3 kB / 300.1 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08362/0.08459, allocations: 49.44 MB / 349.5 MB, free: 4.574 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006135/0.09075, allocations: 5.417 MB / 354.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003023/0.0938, allocations: 2.036 MB / 357 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004066/0.09423, allocations: 35.81 kB / 357 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004151/0.09468, allocations: 166.8 kB / 357.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000298/0.09499, allocations: 142.8 kB / 357.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006934/0.09569, allocations: 335.4 kB / 357.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007819/0.09648, allocations: 0.9624 MB / 358.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000665/0.09716, allocations: 0.5435 MB / 359.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002888/0.09746, allocations: 298.8 kB / 359.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003049/0.09777, allocations: 334.3 kB / 359.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.666e-05/0.09785, allocations: 52 kB / 359.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002016/0.09806, allocations: 111.9 kB / 359.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001378/0.09821, allocations: 167.4 kB / 360.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002968/0.09851, allocations: 393.9 kB / 360.5 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008059/0.09933, allocations: 1.094 MB / 361.6 MB, free: 8.445 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.09934, allocations: 0 / 361.6 MB, free: 8.445 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.09935, allocations: 0 / 361.6 MB, free: 8.445 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.09936, allocations: 0 / 361.6 MB, free: 8.445 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.001264/0.1006, allocations: 1.037 MB / 362.6 MB, free: 7.355 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.1007, allocations: 12.03 kB / 362.6 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001253/0.1008, allocations: 143.4 kB / 362.7 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.1009, allocations: 87.91 kB / 362.8 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005627/0.1015, allocations: 0.4909 MB / 363.3 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.385e-05/0.1016, allocations: 66.36 kB / 363.4 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.1017, allocations: 92.22 kB / 363.5 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/0.1029, allocations: 0.8046 MB / 364.3 MB, free: 5.582 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.077e-05/0.103, allocations: 7.906 kB / 364.3 MB, free: 5.574 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.163e-05/0.1031, allocations: 35.94 kB / 364.3 MB, free: 5.539 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.1031, allocations: 24 kB / 364.3 MB, free: 5.516 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009241/0.104, allocations: 0.4918 MB / 364.8 MB, free: 5.027 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002986/0.107, allocations: 2.883 MB / 367.7 MB, free: 2.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005107/0.1075, allocations: 230.6 kB / 367.9 MB, free: 1.781 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001673/0.1077, allocations: 104.8 kB / 368 MB, free: 1.676 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000234/0.1079, allocations: 247.3 kB / 368.3 MB, free: 1.379 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/0.108, allocations: 42.56 kB / 368.3 MB, free: 1.328 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.883e-06/0.108, allocations: 0 / 368.3 MB, free: 1.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.1426/0.2506, allocations: 1.248 MB / 369.6 MB, free: 25.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.995e-05/0.2507, allocations: 57.22 kB / 369.6 MB, free: 25.4 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003902/0.2511, allocations: 302.5 kB / 369.9 MB, free: 25.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.421e-05/0.2511, allocations: 30.64 kB / 370 MB, free: 25.26 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002582/0.2514, allocations: 398.3 kB / 370.3 MB, free: 25.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.2515, allocations: 135.3 kB / 370.5 MB, free: 25.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001454/0.2517, allocations: 89.05 kB / 370.6 MB, free: 25.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.621e-05/0.2518, allocations: 350.5 kB / 370.9 MB, free: 24.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002243/0.252, allocations: 110.4 kB / 371 MB, free: 24.72 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002875/0.2523, allocations: 247.6 kB / 371.3 MB, free: 24.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005032/0.2528, allocations: 393.3 kB / 371.6 MB, free: 24.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.2528, allocations: 0.625 kB / 371.6 MB, free: 24.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007695/0.2536, allocations: 463.1 kB / 372.1 MB, free: 24.26 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.2536, allocations: 7.344 kB / 372.1 MB, free: 24.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.2536, allocations: 4 kB / 372.1 MB, free: 24.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002188/0.2539, allocations: 37.53 kB / 372.1 MB, free: 24.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003613/0.2542, allocations: 113.5 kB / 372.3 MB, free: 24.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002791/0.2545, allocations: 0.5524 MB / 372.8 MB, free: 23.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00021/0.2547, allocations: 16.33 kB / 372.8 MB, free: 23.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.092e-05/0.2548, allocations: 23 kB / 372.8 MB, free: 23.69 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.0002663/0.2551, allocations: 222.8 kB / 373.1 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.61e-05/0.2551, allocations: 37.5 kB / 373.1 MB, free: 23.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006139/0.2558, allocations: 321.9 kB / 373.4 MB, free: 23.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.2558, allocations: 4.25 kB / 373.4 MB, free: 23.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.2558, allocations: 1.188 kB / 373.4 MB, free: 23.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.2558, allocations: 5.859 kB / 373.4 MB, free: 23.33 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001439/0.2572, allocations: 1.011 MB / 374.4 MB, free: 22.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.2573, allocations: 5.891 kB / 374.4 MB, free: 22.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003858/0.2577, allocations: 81.2 kB / 374.5 MB, free: 22.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001908/0.2579, allocations: 34.88 kB / 374.6 MB, free: 22.69 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.123e-05/0.2579, allocations: 13.55 kB / 374.6 MB, free: 22.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002995/0.2582, allocations: 0.553 MB / 375.1 MB, free: 22.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.2582, allocations: 9.641 kB / 375.1 MB, free: 22.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007765/0.259, allocations: 0.5478 MB / 375.7 MB, free: 21.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.749e-05/0.2591, allocations: 107.6 kB / 375.8 MB, free: 21.69 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.219e-05/0.2592, allocations: 12.47 kB / 375.8 MB, free: 21.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/0.2593, allocations: 9.625 kB / 375.8 MB, free: 21.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.437e-05/0.2594, allocations: 26.31 kB / 375.8 MB, free: 21.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.89e-05/0.2594, allocations: 15.72 kB / 375.8 MB, free: 21.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002725/0.2597, allocations: 207.5 kB / 376 MB, free: 21.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.2597, allocations: 0 / 376 MB, free: 21.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005969/0.2603, allocations: 118.6 kB / 376.2 MB, free: 21.54 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.0008975/0.2612, allocations: 1.1 MB / 377.3 MB, free: 20.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006134/0.2619, allocations: 311.7 kB / 377.6 MB, free: 20.56 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.2619, allocations: 4 kB / 377.6 MB, free: 20.56 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002574/0.2621, allocations: 141.5 kB / 377.7 MB, free: 20.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005001/0.2627, allocations: 66.2 kB / 377.8 MB, free: 20.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005154/0.2678, allocations: 4.739 MB / 382.5 MB, free: 17.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003535/0.2682, allocations: 0.9264 MB / 383.4 MB, free: 16.37 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001829/0.2684, allocations: 49.92 kB / 383.5 MB, free: 16.35 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002252/0.2686, allocations: 244.5 kB / 383.7 MB, free: 16.16 MB / 302.1 MB Notification: Performance of SimCode: time 8.91e-07/0.2686, allocations: 0 / 383.7 MB, free: 16.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1761/0.4448, allocations: 7.779 MB / 391.5 MB, free: 13.94 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001576/0.445, allocations: 239.1 kB / 391.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.093/2.538, allocations: 0 / 391.7 MB, free: 13.68 MB / 302.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 & /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 --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) 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