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.001044/0.001044, allocations: 109.6 kB / 16.92 MB, free: 6.145 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.001192/0.001192, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.335/1.335, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001095/0.001096, allocations: 43.5 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08743/0.08854, allocations: 49.45 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006635/0.0952, allocations: 5.431 MB / 355.6 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003574/0.09881, allocations: 2.071 MB / 357.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008377/0.09968, allocations: 39.75 kB / 357.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005771/0.1003, allocations: 202.3 kB / 357.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000594/0.1009, allocations: 170.4 kB / 358.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009787/0.1019, allocations: 387.1 kB / 358.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001144/0.1031, allocations: 1.029 MB / 359.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008673/0.1039, allocations: 0.6065 MB / 360.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004682/0.1044, allocations: 330.9 kB / 360.4 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004493/0.1049, allocations: 366.3 kB / 360.8 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001878/0.1051, allocations: 92 kB / 360.8 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003496/0.1054, allocations: 151.9 kB / 361 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002711/0.1057, allocations: 203.5 kB / 361.2 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006879/0.1064, allocations: 430 kB / 361.6 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001468/0.1079, allocations: 1.149 MB / 362.8 MB, free: 7.625 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.413e-06/0.1079, allocations: 3.984 kB / 362.8 MB, free: 7.621 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.596e-06/0.1079, allocations: 0 / 362.8 MB, free: 7.621 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.036e-05/0.108, allocations: 3.938 kB / 362.8 MB, free: 7.617 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.002057/0.11, allocations: 1.026 MB / 363.8 MB, free: 6.539 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.1101, allocations: 12.03 kB / 363.8 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001977/0.1103, allocations: 131.5 kB / 363.9 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001847/0.1105, allocations: 87.91 kB / 364 MB, free: 6.305 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007457/0.1113, allocations: 0.4948 MB / 364.5 MB, free: 5.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.481e-05/0.1113, allocations: 66.31 kB / 364.6 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000134/0.1115, allocations: 88.28 kB / 364.7 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001533/0.113, allocations: 0.8046 MB / 365.5 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.678e-05/0.1131, allocations: 7.906 kB / 365.5 MB, free: 4.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.409e-05/0.1131, allocations: 36 kB / 365.5 MB, free: 4.734 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.043e-05/0.1131, allocations: 20 kB / 365.5 MB, free: 4.715 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009903/0.1141, allocations: 0.4996 MB / 366 MB, free: 4.219 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003208/0.1174, allocations: 2.899 MB / 368.9 MB, free: 1.195 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005493/0.1179, allocations: 231.6 kB / 369.2 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001703/0.1181, allocations: 96.83 kB / 369.3 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003163/0.1184, allocations: 251.3 kB / 369.5 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.1185, allocations: 34.56 kB / 369.5 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.864e-06/0.1185, allocations: 0 / 369.5 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.1405/0.2589, allocations: 1.261 MB / 370.8 MB, free: 25.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.573e-05/0.259, allocations: 59.75 kB / 370.9 MB, free: 25.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003268/0.2593, allocations: 310 kB / 371.2 MB, free: 25.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.2594, allocations: 30.02 kB / 371.2 MB, free: 25.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001737/0.2595, allocations: 395.4 kB / 371.6 MB, free: 24.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.166e-05/0.2596, allocations: 134.2 kB / 371.7 MB, free: 24.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.2597, allocations: 90.28 kB / 371.8 MB, free: 24.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.55e-05/0.2598, allocations: 352.4 kB / 372.1 MB, free: 24.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/0.26, allocations: 107.9 kB / 372.2 MB, free: 24.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000279/0.2603, allocations: 251.3 kB / 372.5 MB, free: 24.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004763/0.2608, allocations: 390.3 kB / 372.9 MB, free: 23.96 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.2608, allocations: 1.656 kB / 372.9 MB, free: 23.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007752/0.2616, allocations: 465.2 kB / 373.3 MB, free: 23.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.2616, allocations: 7.781 kB / 373.3 MB, free: 23.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.2616, allocations: 5.359 kB / 373.3 MB, free: 23.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002026/0.2618, allocations: 39.14 kB / 373.4 MB, free: 23.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003614/0.2622, allocations: 107.6 kB / 373.5 MB, free: 23.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002949/0.2625, allocations: 0.5585 MB / 374 MB, free: 23.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002025/0.2627, allocations: 17.55 kB / 374.1 MB, free: 23.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.252e-05/0.2628, allocations: 22.52 kB / 374.1 MB, free: 23.18 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.0002779/0.2631, allocations: 222.9 kB / 374.3 MB, free: 23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.2632, allocations: 33.8 kB / 374.3 MB, free: 22.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006245/0.2638, allocations: 320 kB / 374.6 MB, free: 22.83 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.2638, allocations: 4 kB / 374.6 MB, free: 22.83 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.2639, allocations: 0 / 374.6 MB, free: 22.83 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.2639, allocations: 7.016 kB / 374.7 MB, free: 22.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001275/0.2652, allocations: 1.016 MB / 375.7 MB, free: 22.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.2652, allocations: 4 kB / 375.7 MB, free: 22.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003553/0.2655, allocations: 80.91 kB / 375.8 MB, free: 22.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001232/0.2657, allocations: 34.14 kB / 375.8 MB, free: 22.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.388e-05/0.2657, allocations: 10.38 kB / 375.8 MB, free: 22.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002131/0.2659, allocations: 0.5486 MB / 376.3 MB, free: 21.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.2659, allocations: 10 kB / 376.4 MB, free: 21.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006617/0.2666, allocations: 0.5445 MB / 376.9 MB, free: 21.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.901e-05/0.2667, allocations: 114.9 kB / 377 MB, free: 21.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.668e-05/0.2667, allocations: 12.95 kB / 377 MB, free: 21.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001485/0.2669, allocations: 8.734 kB / 377 MB, free: 21.17 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.978e-05/0.2669, allocations: 23.2 kB / 377.1 MB, free: 21.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.199e-05/0.267, allocations: 11.27 kB / 377.1 MB, free: 21.17 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001905/0.2672, allocations: 213.2 kB / 377.3 MB, free: 21.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2672, allocations: 0 / 377.3 MB, free: 21.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005683/0.2678, allocations: 122.1 kB / 377.4 MB, free: 21.03 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.0009683/0.2687, allocations: 1.102 MB / 378.5 MB, free: 20.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007427/0.2695, allocations: 320.7 kB / 378.8 MB, free: 20.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.2695, allocations: 384 / 378.8 MB, free: 20.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002721/0.2698, allocations: 145.4 kB / 378.9 MB, free: 20.01 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005443/0.2703, allocations: 70.44 kB / 379 MB, free: 19.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004986/0.2753, allocations: 4.416 MB / 383.4 MB, free: 16.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003836/0.2757, allocations: 0.9202 MB / 384.4 MB, free: 16.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001886/0.2759, allocations: 44.3 kB / 384.4 MB, free: 16.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002144/0.2762, allocations: 244.5 kB / 384.6 MB, free: 16 MB / 302.1 MB Notification: Performance of SimCode: time 7.62e-07/0.2762, allocations: 0 / 384.6 MB, free: 16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02969/0.3059, allocations: 8.066 MB / 392.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.13, allocations: 8.938 kB / 392.7 MB, free: 13.48 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