Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.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.Directions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001222/0.001222, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002158/0.002158, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, 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.2335/0.2335, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001745/0.001745, allocations: 72.16 kB / 480.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3866/0.3883, allocations: 62.44 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.004327/0.3927, allocations: 2.862 MB / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001702/0.3945, allocations: 0.7961 MB / 0.5341 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002547/0.3948, allocations: 7.219 kB / 0.5341 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002243/0.395, allocations: 62.45 kB / 0.5341 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002965/0.3953, allocations: 137 kB / 0.5343 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004035/0.3957, allocations: 115 kB / 0.5344 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000524/0.3963, allocations: 449.1 kB / 0.5348 GB, free: 9.969 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003251/0.3966, allocations: 194 kB / 0.535 GB, free: 9.855 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003702/0.397, allocations: 178.9 kB / 0.5352 GB, free: 9.754 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002521/0.3972, allocations: 187.9 kB / 0.5353 GB, free: 9.625 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.94e-05/0.3973, allocations: 36.09 kB / 0.5354 GB, free: 9.625 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.3974, allocations: 40.59 kB / 0.5354 GB, free: 9.621 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.905e-05/0.3975, allocations: 78.52 kB / 0.5355 GB, free: 9.555 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002021/0.3977, allocations: 217.4 kB / 0.5357 GB, free: 9.406 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005848/0.3983, allocations: 462.4 kB / 0.5361 GB, free: 9.074 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3984, allocations: 0 / 0.5361 GB, free: 9.074 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3984, allocations: 0.5938 kB / 0.5361 GB, free: 9.074 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.3984, allocations: 0 / 0.5361 GB, free: 9.074 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001051/0.3994, allocations: 0.6836 MB / 0.5368 GB, free: 8.477 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.3995, allocations: 9.594 kB / 0.5368 GB, free: 8.477 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.859e-05/0.3996, allocations: 78.44 kB / 0.5369 GB, free: 8.402 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003303/0.3999, allocations: 79.02 kB / 0.537 GB, free: 8.363 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004771/0.4004, allocations: 300.4 kB / 0.5373 GB, free: 8.07 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.734e-05/0.4004, allocations: 28.84 kB / 0.5373 GB, free: 8.059 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.875e-05/0.4005, allocations: 37.84 kB / 0.5373 GB, free: 8.047 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006787/0.4012, allocations: 392.6 kB / 0.5377 GB, free: 7.797 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/0.4012, allocations: 5.078 kB / 0.5377 GB, free: 7.793 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.176e-05/0.4013, allocations: 16.34 kB / 0.5377 GB, free: 7.781 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.4013, allocations: 9 kB / 0.5377 GB, free: 7.781 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005156/0.4018, allocations: 247.8 kB / 0.538 GB, free: 7.668 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001896/0.4037, allocations: 1.108 MB / 0.539 GB, free: 6.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005913/0.4043, allocations: 344.8 kB / 0.5394 GB, free: 6.555 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003002/0.4047, allocations: 185.8 kB / 0.5395 GB, free: 6.449 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.944e-05/0.4047, allocations: 8.469 kB / 0.5396 GB, free: 6.445 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.227e-05/0.4047, allocations: 40.78 kB / 0.5396 GB, free: 6.398 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 2.194e-06/0.4047, allocations: 0 / 0.5396 GB, free: 6.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=57): time 0.004105/0.4089, allocations: 2.46 MB / 0.542 GB, free: 4.391 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.344e-05/0.409, allocations: 107.7 kB / 0.5421 GB, free: 4.266 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002583/0.4092, allocations: 249.8 kB / 0.5423 GB, free: 4.094 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.279e-05/0.4093, allocations: 36.48 kB / 0.5424 GB, free: 4.055 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.4094, allocations: 180.6 kB / 0.5425 GB, free: 3.891 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001541/0.4096, allocations: 212.8 kB / 0.5427 GB, free: 3.703 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.4097, allocations: 83 kB / 0.5428 GB, free: 3.645 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.4099, allocations: 355.6 kB / 0.5432 GB, free: 3.297 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002735/0.4101, allocations: 127 kB / 0.5433 GB, free: 3.242 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003403/0.4105, allocations: 234.9 kB / 0.5435 GB, free: 3.062 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000663/0.4112, allocations: 401.3 kB / 0.5439 GB, free: 2.801 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.4112, allocations: 0 / 0.5439 GB, free: 2.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00106/0.4122, allocations: 0.557 MB / 0.5444 GB, free: 2.492 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.4123, allocations: 6.5 kB / 0.5444 GB, free: 2.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.4123, allocations: 3.25 kB / 0.5444 GB, free: 2.492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003732/0.4127, allocations: 124.8 kB / 0.5446 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004014/0.4131, allocations: 97.36 kB / 0.5447 GB, free: 2.398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004638/0.4177, allocations: 5.222 MB / 0.5498 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003331/0.4181, allocations: 16 kB / 0.5498 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.36e-05/0.4181, allocations: 16 kB / 0.5498 GB, free: 12.99 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003059/0.4185, allocations: 181.6 kB / 0.55 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.4186, allocations: 39.77 kB / 0.55 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.206e-05/0.4187, allocations: 50.17 kB / 0.55 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.4187, allocations: 4 kB / 0.5501 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.053e-05/0.4187, allocations: 7.938 kB / 0.5501 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.4187, allocations: 0 / 0.5501 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002017/0.4207, allocations: 1.327 MB / 0.5514 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.4208, allocations: 0 / 0.5514 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004386/0.4212, allocations: 99.88 kB / 0.5515 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002966/0.4215, allocations: 94.45 kB / 0.5515 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.223e-05/0.4215, allocations: 12.19 kB / 0.5516 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003582/0.4251, allocations: 4.439 MB / 0.5559 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.4252, allocations: 3.938 kB / 0.5559 GB, free: 6.223 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001369/0.4265, allocations: 0.9312 MB / 0.5568 GB, free: 5.258 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001437/0.4267, allocations: 112.9 kB / 0.5569 GB, free: 5.129 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.252e-05/0.4268, allocations: 16.19 kB / 0.5569 GB, free: 5.113 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002748/0.4271, allocations: 16 kB / 0.5569 GB, free: 5.098 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.4272, allocations: 55.81 kB / 0.557 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.688e-05/0.4272, allocations: 12 kB / 0.557 GB, free: 5.031 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001701/0.4274, allocations: 178 kB / 0.5572 GB, free: 4.855 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4274, allocations: 4 kB / 0.5572 GB, free: 4.852 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007479/0.4282, allocations: 120 kB / 0.5573 GB, free: 4.734 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.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 (48): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,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.001671/0.4298, allocations: 1.482 MB / 0.5587 GB, free: 3.211 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001436/0.4313, allocations: 0.7772 MB / 0.5595 GB, free: 2.391 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.4313, allocations: 0 / 0.5595 GB, free: 2.391 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008301/0.4322, allocations: 0.5661 MB / 0.5601 GB, free: 1.785 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007358/0.4329, allocations: 69.77 kB / 0.5601 GB, free: 1.727 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006215/0.4391, allocations: 4.172 MB / 0.5642 GB, free: 13.36 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005455/0.4397, allocations: 0.8241 MB / 0.565 GB, free: 12.5 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001656/0.4399, allocations: 39.25 kB / 0.565 GB, free: 12.46 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001839/0.4401, allocations: 131.4 kB / 0.5652 GB, free: 12.34 MB / 430.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4401, allocations: 0 / 0.5652 GB, free: 12.34 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03925/0.4794, allocations: 8.369 MB / 0.5733 GB, free: 4.109 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/11.05, allocations: 6.5 kB / 0.5733 GB, free: 4.105 MB / 430.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions_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_Directions.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches