Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.Directions3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001163/0.001163, allocations: 117.2 kB / 17.78 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00134/0.00134, allocations: 200.6 kB / 18.72 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2201/0.2201, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001679/0.001679, allocations: 75.88 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3413, allocations: 62.43 MB / 0.5305 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.002787/0.3441, allocations: 1.67 MB / 0.5321 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003144/0.3445, allocations: 114.9 kB / 0.5322 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.484e-05/0.3446, allocations: 5.406 kB / 0.5322 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.112e-05/0.3446, allocations: 17.27 kB / 0.5322 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001069/0.3448, allocations: 33.61 kB / 0.5323 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001211/0.3449, allocations: 31.11 kB / 0.5323 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00014/0.345, allocations: 129.8 kB / 0.5324 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/0.3452, allocations: 32.45 kB / 0.5325 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.997e-05/0.3453, allocations: 50.25 kB / 0.5325 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.166e-05/0.3454, allocations: 49.03 kB / 0.5326 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.2e-05/0.3454, allocations: 9.062 kB / 0.5326 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.976e-05/0.3454, allocations: 8.688 kB / 0.5326 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.732e-05/0.3454, allocations: 23.2 kB / 0.5326 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.98e-05/0.3455, allocations: 61.52 kB / 0.5327 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001601/0.3457, allocations: 122 kB / 0.5328 GB, free: 11.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3457, allocations: 0 / 0.5328 GB, free: 11.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3457, allocations: 3.938 kB / 0.5328 GB, free: 11.83 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.3457, allocations: 1.375 kB / 0.5328 GB, free: 11.83 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0004793/0.3462, allocations: 414.9 kB / 0.5332 GB, free: 11.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.3462, allocations: 9.625 kB / 0.5332 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.521e-05/0.3463, allocations: 42.88 kB / 0.5332 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.159e-05/0.3463, allocations: 14.39 kB / 0.5332 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001717/0.3465, allocations: 197.8 kB / 0.5334 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/0.3465, allocations: 10.11 kB / 0.5334 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.804e-05/0.3466, allocations: 12.62 kB / 0.5334 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002133/0.3468, allocations: 133.4 kB / 0.5336 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.3468, allocations: 9.266 kB / 0.5336 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.3468, allocations: 5.375 kB / 0.5336 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.3468, allocations: 2.75 kB / 0.5336 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000101/0.3469, allocations: 59.12 kB / 0.5336 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007135/0.3477, allocations: 0.535 MB / 0.5342 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001347/0.3478, allocations: 87.84 kB / 0.5343 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.512e-05/0.3479, allocations: 40.17 kB / 0.5343 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.216e-06/0.3479, allocations: 4.562 kB / 0.5343 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/0.3479, allocations: 35.75 kB / 0.5343 GB, free: 10.3 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.3479, allocations: 0 / 0.5343 GB, free: 10.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005922/0.3485, allocations: 303 kB / 0.5346 GB, free: 10.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.3486, allocations: 79.3 kB / 0.5347 GB, free: 9.922 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.3487, allocations: 129.3 kB / 0.5348 GB, free: 9.801 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.3487, allocations: 25.7 kB / 0.5348 GB, free: 9.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.943e-05/0.3488, allocations: 121.4 kB / 0.535 GB, free: 9.652 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.472e-05/0.3488, allocations: 35.86 kB / 0.535 GB, free: 9.621 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.285e-05/0.3488, allocations: 27.03 kB / 0.535 GB, free: 9.598 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.349, allocations: 325.3 kB / 0.5353 GB, free: 9.273 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.246e-05/0.349, allocations: 27.39 kB / 0.5354 GB, free: 9.258 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.349e-05/0.3491, allocations: 87.05 kB / 0.5354 GB, free: 9.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001322/0.3492, allocations: 122 kB / 0.5356 GB, free: 9.043 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3492, allocations: 0 / 0.5356 GB, free: 9.043 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002778/0.3495, allocations: 166 kB / 0.5357 GB, free: 8.934 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.3496, allocations: 6.25 kB / 0.5357 GB, free: 8.934 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.3496, allocations: 10.58 kB / 0.5357 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000184/0.3498, allocations: 34.16 kB / 0.5358 GB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.194e-05/0.3499, allocations: 26.64 kB / 0.5358 GB, free: 8.895 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001872/0.3517, allocations: 2.743 MB / 0.5385 GB, free: 6.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.722e-05/0.3518, allocations: 16.02 kB / 0.5385 GB, free: 6.008 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.897e-06/0.3518, allocations: 5.5 kB / 0.5385 GB, free: 6.008 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 (14): * Single equations (assignments): 12 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.352, allocations: 128.6 kB / 0.5386 GB, free: 5.879 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.546e-05/0.352, allocations: 6.688 kB / 0.5386 GB, free: 5.875 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.155e-05/0.352, allocations: 10.66 kB / 0.5386 GB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.352, allocations: 5.438 kB / 0.5386 GB, free: 5.859 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3521, allocations: 5.359 kB / 0.5386 GB, free: 5.855 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.3521, allocations: 0 / 0.5386 GB, free: 5.855 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002421/0.3523, allocations: 200.9 kB / 0.5388 GB, free: 5.633 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3523, allocations: 0 / 0.5388 GB, free: 5.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.696e-05/0.3524, allocations: 18.89 kB / 0.5388 GB, free: 5.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001273/0.3526, allocations: 40.67 kB / 0.5389 GB, free: 5.594 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.3526, allocations: 5.031 kB / 0.5389 GB, free: 5.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001753/0.3543, allocations: 2.726 MB / 0.5415 GB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.3544, allocations: 1.25 kB / 0.5415 GB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002953/0.3547, allocations: 315.6 kB / 0.5419 GB, free: 2.445 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.095e-05/0.3547, allocations: 83.48 kB / 0.5419 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.472e-05/0.3547, allocations: 5.062 kB / 0.5419 GB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.087e-05/0.3548, allocations: 1.531 kB / 0.5419 GB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.679e-05/0.3549, allocations: 15.64 kB / 0.542 GB, free: 2.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.811e-06/0.3549, allocations: 2.188 kB / 0.542 GB, free: 2.332 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.376e-05/0.3549, allocations: 96.95 kB / 0.542 GB, free: 2.246 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3549, allocations: 0 / 0.542 GB, free: 2.246 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003592/0.3553, allocations: 39.8 kB / 0.5421 GB, free: 2.234 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.phi) * 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 (6): * Single equations (assignments): 4 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005783/0.3559, allocations: 0.8306 MB / 0.5429 GB, free: 1.434 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004455/0.3564, allocations: 306.3 kB / 0.5432 GB, free: 1.164 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.3564, allocations: 1.188 kB / 0.5432 GB, free: 1.164 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002821/0.3567, allocations: 263 kB / 0.5434 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004836/0.3572, allocations: 33.58 kB / 0.5435 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002114/0.3593, allocations: 1.98 MB / 0.5454 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003065/0.3596, allocations: 0.703 MB / 0.5461 GB, free: 14.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.995e-05/0.3597, allocations: 9.312 kB / 0.5461 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.032e-05/0.3597, allocations: 28.09 kB / 0.5461 GB, free: 14.3 MB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3597, allocations: 0 / 0.5461 GB, free: 14.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0247/0.3844, allocations: 3.012 MB / 0.5491 GB, free: 12.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.698/10.08, allocations: 11.92 kB / 0.5491 GB, free: 12.72 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions3.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches