Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00136/0.00136, allocations: 118.8 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.001495/0.001495, allocations: 202 kB / 18.74 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.425/1.425, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2382/0.2382, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001639/0.001639, allocations: 75.88 kB / 480.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3637/0.3653, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003045/0.3684, allocations: 1.927 MB / 0.5324 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009719/0.3694, allocations: 0.5509 MB / 0.5329 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.944e-05/0.3695, allocations: 2.625 kB / 0.5329 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001373/0.3697, allocations: 27 kB / 0.5329 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000107/0.3698, allocations: 40.98 kB / 0.533 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002298/0.3701, allocations: 50.88 kB / 0.533 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001904/0.3703, allocations: 155.1 kB / 0.5332 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.3704, allocations: 60.31 kB / 0.5332 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001625/0.3706, allocations: 63.27 kB / 0.5333 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001049/0.3707, allocations: 63.27 kB / 0.5334 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.583e-05/0.3708, allocations: 16.14 kB / 0.5334 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.236e-05/0.3708, allocations: 17.28 kB / 0.5334 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.921e-05/0.3709, allocations: 31.91 kB / 0.5334 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.047e-05/0.3709, allocations: 66.02 kB / 0.5335 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002316/0.3712, allocations: 156.8 kB / 0.5336 GB, free: 10.96 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3712, allocations: 1.219 kB / 0.5336 GB, free: 10.96 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3712, allocations: 0 / 0.5336 GB, free: 10.96 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.3712, allocations: 0 / 0.5336 GB, free: 10.96 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005643/0.3718, allocations: 450.8 kB / 0.5341 GB, free: 10.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.3718, allocations: 12.31 kB / 0.5341 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.903e-05/0.3719, allocations: 43.03 kB / 0.5341 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001488/0.372, allocations: 26.58 kB / 0.5341 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002629/0.3723, allocations: 205.9 kB / 0.5343 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.3723, allocations: 9.875 kB / 0.5343 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.699e-05/0.3724, allocations: 20.58 kB / 0.5344 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002619/0.3726, allocations: 134.9 kB / 0.5345 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.3727, allocations: 1.375 kB / 0.5345 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.754e-05/0.3727, allocations: 5.375 kB / 0.5345 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.3727, allocations: 2.75 kB / 0.5345 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001802/0.3729, allocations: 81.27 kB / 0.5346 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007029/0.3736, allocations: 464.3 kB / 0.535 GB, free: 9.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002176/0.3738, allocations: 124.2 kB / 0.5351 GB, free: 9.586 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.3739, allocations: 59.09 kB / 0.5352 GB, free: 9.555 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.374, allocations: 5.359 kB / 0.5352 GB, free: 9.551 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/0.374, allocations: 39.92 kB / 0.5352 GB, free: 9.504 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.432e-06/0.374, allocations: 0 / 0.5352 GB, free: 9.504 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001515/0.3755, allocations: 0.8071 MB / 0.536 GB, free: 8.836 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.512e-05/0.3756, allocations: 53.56 kB / 0.5361 GB, free: 8.773 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.3757, allocations: 147.4 kB / 0.5362 GB, free: 8.648 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.748e-05/0.3758, allocations: 34.77 kB / 0.5363 GB, free: 8.609 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.182e-05/0.3758, allocations: 109.7 kB / 0.5364 GB, free: 8.5 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.635e-05/0.3759, allocations: 75.14 kB / 0.5364 GB, free: 8.434 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.241e-05/0.376, allocations: 38.12 kB / 0.5365 GB, free: 8.402 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.3761, allocations: 329.1 kB / 0.5368 GB, free: 8.074 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.682e-05/0.3762, allocations: 40.05 kB / 0.5368 GB, free: 8.059 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.3763, allocations: 83.44 kB / 0.5369 GB, free: 7.996 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002299/0.3766, allocations: 136.5 kB / 0.537 GB, free: 7.906 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3766, allocations: 1.062 kB / 0.537 GB, free: 7.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003736/0.377, allocations: 200.8 kB / 0.5372 GB, free: 7.789 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.377, allocations: 9.594 kB / 0.5372 GB, free: 7.785 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.377, allocations: 13.84 kB / 0.5372 GB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001673/0.3772, allocations: 45.98 kB / 0.5373 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001699/0.3774, allocations: 30.45 kB / 0.5373 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001489/0.3788, allocations: 1.738 MB / 0.539 GB, free: 6.027 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.568e-05/0.379, allocations: 7.156 kB / 0.539 GB, free: 6.023 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.379, allocations: 4.562 kB / 0.539 GB, free: 6.023 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001229/0.3791, allocations: 133.2 kB / 0.5392 GB, free: 5.891 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.114e-05/0.3792, allocations: 14.59 kB / 0.5392 GB, free: 5.883 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.657e-05/0.3792, allocations: 23.2 kB / 0.5392 GB, free: 5.867 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.3792, allocations: 6.094 kB / 0.5392 GB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.3792, allocations: 1.203 kB / 0.5392 GB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.3792, allocations: 3.984 kB / 0.5392 GB, free: 5.859 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000775/0.38, allocations: 0.554 MB / 0.5397 GB, free: 5.371 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.748e-06/0.38, allocations: 4 kB / 0.5397 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001751/0.3802, allocations: 35.05 kB / 0.5398 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001164/0.3803, allocations: 32.77 kB / 0.5398 GB, free: 5.34 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.3804, allocations: 5.031 kB / 0.5398 GB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001106/0.3815, allocations: 1.474 MB / 0.5413 GB, free: 3.84 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3815, allocations: 0 / 0.5413 GB, free: 3.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005336/0.382, allocations: 353 kB / 0.5416 GB, free: 3.582 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.479e-05/0.3821, allocations: 88.52 kB / 0.5417 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.964e-05/0.3821, allocations: 2.344 kB / 0.5417 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.947e-05/0.3822, allocations: 6.188 kB / 0.5417 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.153e-05/0.3823, allocations: 18.98 kB / 0.5417 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.3823, allocations: 11.45 kB / 0.5417 GB, free: 3.457 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.977e-05/0.3824, allocations: 107.1 kB / 0.5418 GB, free: 3.371 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3824, allocations: 0 / 0.5418 GB, free: 3.371 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003644/0.3828, allocations: 42.5 kB / 0.5419 GB, free: 3.363 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (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 (16): * Single equations (assignments): 15 * 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): 1 system {(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.0007748/0.3836, allocations: 0.8778 MB / 0.5427 GB, free: 2.578 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000523/0.3841, allocations: 259.8 kB / 0.543 GB, free: 2.398 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3841, allocations: 0 / 0.543 GB, free: 2.398 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000263/0.3844, allocations: 197.1 kB / 0.5431 GB, free: 2.246 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003538/0.3847, allocations: 28.31 kB / 0.5432 GB, free: 2.227 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002617/0.3874, allocations: 2.062 MB / 0.5452 GB, free: 500 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.3877, allocations: 0.7247 MB / 0.5459 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.441e-05/0.3878, allocations: 16.02 kB / 0.5459 GB, free: 15.76 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.581e-05/0.3878, allocations: 41.98 kB / 0.5459 GB, free: 15.72 MB / 414.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3879, allocations: 1.062 kB / 0.546 GB, free: 15.72 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02412/0.412, allocations: 3.441 MB / 0.5493 GB, free: 13.74 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.05/10.46, allocations: 7.359 kB / 0.5493 GB, free: 13.73 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_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_SimpleDriveTrain.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches