Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_ConnectionPossibilities",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_ConnectionPossibilities",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001136/0.001136, allocations: 114.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001235/0.001235, allocations: 209.2 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2324/0.2324, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 75.88 kB / 480.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.3612, allocations: 62.43 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities): time 0.003231/0.3645, allocations: 1.863 MB / 0.5323 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004412/0.365, allocations: 146.5 kB / 0.5325 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.912e-05/0.3651, allocations: 2.75 kB / 0.5325 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.583e-05/0.3652, allocations: 18.95 kB / 0.5325 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001576/0.3653, allocations: 57.42 kB / 0.5325 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001752/0.3655, allocations: 40.47 kB / 0.5326 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002205/0.3657, allocations: 192.7 kB / 0.5327 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001745/0.3659, allocations: 55.84 kB / 0.5328 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001083/0.366, allocations: 76.25 kB / 0.5329 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001246/0.3662, allocations: 67.8 kB / 0.5329 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.071e-05/0.3662, allocations: 12.09 kB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.383e-05/0.3662, allocations: 14.22 kB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.56e-05/0.3663, allocations: 42.56 kB / 0.533 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.12e-05/0.3664, allocations: 85.47 kB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002443/0.3666, allocations: 180.9 kB / 0.5333 GB, free: 11.26 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3667, allocations: 0 / 0.5333 GB, free: 11.26 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3667, allocations: 0 / 0.5333 GB, free: 11.26 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.3667, allocations: 0 / 0.5333 GB, free: 11.26 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0006358/0.3673, allocations: 454.1 kB / 0.5337 GB, free: 10.82 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.3674, allocations: 13.56 kB / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.903e-05/0.3674, allocations: 56.22 kB / 0.5338 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.778e-05/0.3675, allocations: 17.09 kB / 0.5338 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002202/0.3677, allocations: 204.5 kB / 0.534 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.3678, allocations: 19.52 kB / 0.534 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.388e-05/0.3678, allocations: 27.31 kB / 0.534 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002811/0.3681, allocations: 161.3 kB / 0.5342 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/0.3681, allocations: 9.297 kB / 0.5342 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.3681, allocations: 5.375 kB / 0.5342 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.637e-06/0.3682, allocations: 4.125 kB / 0.5342 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001663/0.3683, allocations: 90.64 kB / 0.5343 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009167/0.3693, allocations: 0.611 MB / 0.5349 GB, free: 9.754 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002341/0.3695, allocations: 126.1 kB / 0.535 GB, free: 9.668 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.553e-05/0.3696, allocations: 55.86 kB / 0.535 GB, free: 9.629 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.3696, allocations: 9.328 kB / 0.5351 GB, free: 9.621 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.557e-05/0.3697, allocations: 31.88 kB / 0.5351 GB, free: 9.582 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.353e-06/0.3697, allocations: 1.719 kB / 0.5351 GB, free: 9.582 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008772/0.3706, allocations: 379.6 kB / 0.5354 GB, free: 9.258 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.627e-05/0.3706, allocations: 79.36 kB / 0.5355 GB, free: 9.164 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.3708, allocations: 127 kB / 0.5356 GB, free: 9.047 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.3708, allocations: 30.86 kB / 0.5357 GB, free: 9.012 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.218e-05/0.3709, allocations: 127.2 kB / 0.5358 GB, free: 8.891 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.28e-05/0.371, allocations: 62.75 kB / 0.5359 GB, free: 8.836 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.87e-05/0.371, allocations: 38.34 kB / 0.5359 GB, free: 8.805 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.3712, allocations: 326.2 kB / 0.5362 GB, free: 8.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.494e-05/0.3713, allocations: 35.55 kB / 0.5362 GB, free: 8.465 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.3714, allocations: 106.8 kB / 0.5363 GB, free: 8.359 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002105/0.3716, allocations: 159.3 kB / 0.5365 GB, free: 8.223 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.3716, allocations: 1.219 kB / 0.5365 GB, free: 8.223 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004095/0.372, allocations: 235.2 kB / 0.5367 GB, free: 8.074 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.3721, allocations: 8.406 kB / 0.5367 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.377e-06/0.3721, allocations: 6.562 kB / 0.5367 GB, free: 8.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002429/0.3723, allocations: 45.14 kB / 0.5368 GB, free: 8.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001552/0.3725, allocations: 36.67 kB / 0.5368 GB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002425/0.3749, allocations: 2.993 MB / 0.5397 GB, free: 4.949 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.3751, allocations: 17.52 kB / 0.5397 GB, free: 4.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/0.3751, allocations: 10.47 kB / 0.5398 GB, free: 4.934 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001436/0.3753, allocations: 135 kB / 0.5399 GB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.573e-05/0.3753, allocations: 18.45 kB / 0.5399 GB, free: 4.789 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.604e-05/0.3754, allocations: 26.94 kB / 0.5399 GB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.3754, allocations: 1.344 kB / 0.5399 GB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.3754, allocations: 1.875 kB / 0.5399 GB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3754, allocations: 0 / 0.5399 GB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003107/0.3757, allocations: 232.6 kB / 0.5402 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3757, allocations: 0 / 0.5402 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001488/0.3759, allocations: 26.08 kB / 0.5402 GB, free: 4.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001464/0.376, allocations: 51.23 kB / 0.5402 GB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.95e-05/0.3761, allocations: 12.88 kB / 0.5402 GB, free: 4.473 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002211/0.3783, allocations: 2.99 MB / 0.5432 GB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3783, allocations: 1.125 kB / 0.5432 GB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004756/0.3788, allocations: 376.8 kB / 0.5435 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.217e-05/0.3789, allocations: 88.41 kB / 0.5436 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.987e-05/0.3789, allocations: 6.625 kB / 0.5436 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.379, allocations: 3.938 kB / 0.5436 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.64e-05/0.379, allocations: 17.98 kB / 0.5436 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/0.3791, allocations: 3.312 kB / 0.5436 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.28e-05/0.3791, allocations: 103.2 kB / 0.5437 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3791, allocations: 0 / 0.5437 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004946/0.3796, allocations: 58.7 kB / 0.5438 GB, free: 0.8672 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (inertia1.w,inertia2.phi,inertia3.phi,inertia3.w,inertia4.phi,inertia4.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 (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007117/0.3804, allocations: 0.8966 MB / 0.5447 GB, free: 36 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006538/0.381, allocations: 354.8 kB / 0.545 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3811, allocations: 1.312 kB / 0.545 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003323/0.3814, allocations: 283.5 kB / 0.5453 GB, free: 15.49 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005432/0.382, allocations: 37.11 kB / 0.5453 GB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002916/0.3849, allocations: 2.318 MB / 0.5476 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003492/0.3853, allocations: 0.7262 MB / 0.5483 GB, free: 12.67 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.712e-05/0.3854, allocations: 13.98 kB / 0.5483 GB, free: 12.66 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.825e-05/0.3854, allocations: 41.55 kB / 0.5483 GB, free: 12.63 MB / 414.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3854, allocations: 0 / 0.5483 GB, free: 12.63 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03337/0.4188, allocations: 3.77 MB / 0.552 GB, free: 10.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.17/10.59, allocations: 3.984 kB / 0.552 GB, free: 10.59 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_ConnectionPossibilities.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/ConnectionPossibilities/ConnectionPossibilities.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches