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.001179/0.001179, allocations: 105 kB / 17.06 MB, free: 6.027 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.001124/0.001124, allocations: 196 kB / 18 MB, free: 5.105 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.281/1.281, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001035/0.001036, allocations: 47.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2371, allocations: 49.45 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005813/0.243, allocations: 5.423 MB / 405.7 MB, free: 3.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002929/0.2459, allocations: 2.079 MB / 407.7 MB, free: 1.262 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004012/0.2463, allocations: 35.81 kB / 407.8 MB, free: 1.227 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004121/0.2468, allocations: 210.2 kB / 408 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003091/0.2471, allocations: 170.4 kB / 408.1 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007132/0.2478, allocations: 395 kB / 408.5 MB, free: 476 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008258/0.2487, allocations: 1.021 MB / 409.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006881/0.2494, allocations: 0.6065 MB / 410.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003125/0.2497, allocations: 338.9 kB / 410.5 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000334/0.25, allocations: 362.3 kB / 410.8 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.388e-05/0.2501, allocations: 99.94 kB / 410.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002086/0.2503, allocations: 144 kB / 411.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001557/0.2505, allocations: 207.4 kB / 411.3 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000321/0.2508, allocations: 433.9 kB / 411.7 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009183/0.2518, allocations: 1.181 MB / 412.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.2518, allocations: 4 kB / 412.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2518, allocations: 0 / 412.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.185e-05/0.2518, allocations: 0 / 412.9 MB, free: 12.06 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.001252/0.253, allocations: 1.03 MB / 413.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.2531, allocations: 15.89 kB / 413.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001228/0.2532, allocations: 131.5 kB / 414.1 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.2533, allocations: 87.91 kB / 414.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006599/0.254, allocations: 0.5219 MB / 414.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.385e-05/0.2541, allocations: 66.38 kB / 414.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.2542, allocations: 84.38 kB / 414.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.2554, allocations: 0.8007 MB / 415.6 MB, free: 9.199 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.165e-05/0.2554, allocations: 15.84 kB / 415.6 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.663e-05/0.2555, allocations: 32 kB / 415.7 MB, free: 9.152 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.972e-05/0.2555, allocations: 20 kB / 415.7 MB, free: 9.133 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008775/0.2564, allocations: 0.4996 MB / 416.2 MB, free: 8.633 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002775/0.2592, allocations: 2.86 MB / 419 MB, free: 5.648 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000492/0.2597, allocations: 223.4 kB / 419.3 MB, free: 5.418 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/0.2598, allocations: 105.3 kB / 419.4 MB, free: 5.312 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001966/0.26, allocations: 251.3 kB / 419.6 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.478e-05/0.2601, allocations: 42.48 kB / 419.7 MB, free: 4.961 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.422e-06/0.2601, allocations: 0 / 419.7 MB, free: 4.961 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002188/0.2623, allocations: 1.249 MB / 420.9 MB, free: 3.613 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.2624, allocations: 55.41 kB / 421 MB, free: 3.547 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000288/0.2627, allocations: 308.4 kB / 421.3 MB, free: 3.234 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.336e-05/0.2627, allocations: 29.7 kB / 421.3 MB, free: 3.199 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/0.2629, allocations: 398.6 kB / 421.7 MB, free: 2.805 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.057e-05/0.263, allocations: 134 kB / 421.8 MB, free: 2.672 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.2631, allocations: 90.16 kB / 421.9 MB, free: 2.578 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.2633, allocations: 358.7 kB / 422.2 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000194/0.2635, allocations: 109.1 kB / 422.3 MB, free: 2.109 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002728/0.2637, allocations: 242.7 kB / 422.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004954/0.2642, allocations: 392.9 kB / 423 MB, free: 1.367 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2643, allocations: 0 / 423 MB, free: 1.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006789/0.2649, allocations: 469.3 kB / 423.4 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.265, allocations: 8 kB / 423.4 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.265, allocations: 4 kB / 423.4 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001792/0.2652, allocations: 32.84 kB / 423.5 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003388/0.2655, allocations: 111.8 kB / 423.6 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003336/0.2659, allocations: 0.5562 MB / 424.1 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.266, allocations: 20.22 kB / 424.2 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.272e-05/0.2661, allocations: 20 kB / 424.2 MB, free: 124 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.0002602/0.2664, allocations: 221.6 kB / 424.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.446e-05/0.2664, allocations: 43.47 kB / 424.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005583/0.267, allocations: 324.5 kB / 424.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.267, allocations: 8 kB / 424.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.267, allocations: 0 / 424.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.267, allocations: 0 / 424.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001343/0.2684, allocations: 1.012 MB / 425.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.2684, allocations: 4.031 kB / 425.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003446/0.2687, allocations: 83.89 kB / 425.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001343/0.2689, allocations: 28.84 kB / 425.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.793e-05/0.2689, allocations: 8 kB / 425.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003312/0.2693, allocations: 0.5522 MB / 426.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.2693, allocations: 4.031 kB / 426.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007241/0.27, allocations: 0.5486 MB / 427 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.898e-05/0.2701, allocations: 112.8 kB / 427.1 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.15e-05/0.2702, allocations: 11.98 kB / 427.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000155/0.2703, allocations: 11.94 kB / 427.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.944e-05/0.2704, allocations: 23.97 kB / 427.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-05/0.2704, allocations: 15.94 kB / 427.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001943/0.2706, allocations: 207.1 kB / 427.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2706, allocations: 3.938 kB / 427.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005324/0.2712, allocations: 124 kB / 427.5 MB, free: 12.62 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.001045/0.2722, allocations: 1.105 MB / 428.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005775/0.2728, allocations: 296.7 kB / 428.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.2728, allocations: 8.25 kB / 428.9 MB, free: 11.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002411/0.2731, allocations: 143.8 kB / 429 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004906/0.2736, allocations: 61.34 kB / 429.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005601/0.2792, allocations: 4.369 MB / 433.5 MB, free: 6.371 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000563/0.2798, allocations: 0.921 MB / 434.4 MB, free: 5.422 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001551/0.2799, allocations: 43.34 kB / 434.4 MB, free: 5.379 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002768/0.2802, allocations: 247.3 kB / 434.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of SimCode: time 1.042e-06/0.2802, allocations: 0 / 434.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03105/0.3113, allocations: 8.401 MB / 443.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.28, allocations: 0 / 443.1 MB, free: 12.91 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 & /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