Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.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.InitializationConversion.SpringDamper,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_InitializationConversion_SpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.InitializationConversion.SpringDamper,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_InitializationConversion_SpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001126/0.001126, allocations: 122.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.001206/0.001206, allocations: 202 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.399/1.399, 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.2204/0.2204, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001875, allocations: 75.88 kB / 480.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3565/0.3584, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.InitializationConversion.SpringDamper): time 0.004891/0.3633, allocations: 3.296 MB / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001881/0.3653, allocations: 0.8272 MB / 0.5345 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004907/0.3658, allocations: 11.09 kB / 0.5345 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003232/0.3661, allocations: 70.72 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005953/0.3668, allocations: 179.5 kB / 0.5348 GB, free: 9.895 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003278/0.3671, allocations: 105.2 kB / 0.5349 GB, free: 9.801 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006553/0.3678, allocations: 0.6011 MB / 0.5355 GB, free: 9.434 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003176/0.3681, allocations: 171.6 kB / 0.5356 GB, free: 9.332 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002711/0.3684, allocations: 227.6 kB / 0.5359 GB, free: 9.207 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003101/0.3687, allocations: 244.8 kB / 0.5361 GB, free: 9.043 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.333e-05/0.3688, allocations: 42.78 kB / 0.5361 GB, free: 9.043 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.509e-05/0.3688, allocations: 44.94 kB / 0.5362 GB, free: 9.043 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.504e-05/0.3689, allocations: 101.7 kB / 0.5363 GB, free: 8.957 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002508/0.3692, allocations: 265.9 kB / 0.5365 GB, free: 8.789 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006534/0.3699, allocations: 0.5672 MB / 0.5371 GB, free: 8.383 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3699, allocations: 0 / 0.5371 GB, free: 8.383 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3699, allocations: 0 / 0.5371 GB, free: 8.383 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.3699, allocations: 0.9062 kB / 0.5371 GB, free: 8.383 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001139/0.371, allocations: 0.7704 MB / 0.5378 GB, free: 7.73 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.3711, allocations: 10.12 kB / 0.5378 GB, free: 7.73 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.146e-05/0.3712, allocations: 89.05 kB / 0.5379 GB, free: 7.648 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.806e-05/0.3713, allocations: 60.42 kB / 0.538 GB, free: 7.617 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004873/0.3718, allocations: 327 kB / 0.5383 GB, free: 7.301 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.781e-05/0.3718, allocations: 37.09 kB / 0.5383 GB, free: 7.285 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.042e-05/0.3719, allocations: 52.45 kB / 0.5384 GB, free: 7.266 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007075/0.3726, allocations: 435.8 kB / 0.5388 GB, free: 6.996 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.293e-05/0.3727, allocations: 11.36 kB / 0.5388 GB, free: 6.988 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.533e-05/0.3727, allocations: 16.41 kB / 0.5388 GB, free: 6.977 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.426e-05/0.3728, allocations: 11.25 kB / 0.5388 GB, free: 6.977 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005276/0.3733, allocations: 324.2 kB / 0.5391 GB, free: 6.824 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001692/0.375, allocations: 1.146 MB / 0.5403 GB, free: 5.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007547/0.3758, allocations: 489.6 kB / 0.5407 GB, free: 5.602 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003034/0.3761, allocations: 217.6 kB / 0.5409 GB, free: 5.488 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/0.3761, allocations: 10.12 kB / 0.5409 GB, free: 5.484 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.3761, allocations: 42.19 kB / 0.541 GB, free: 5.438 MB / 398.1 MB Notification: Performance of pre-optimization done (n=62): time 2.245e-06/0.3761, allocations: 0 / 0.541 GB, free: 5.438 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.003161/0.3793, allocations: 2.138 MB / 0.5431 GB, free: 3.879 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.721e-05/0.3794, allocations: 86.02 kB / 0.5432 GB, free: 3.785 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000299/0.3797, allocations: 259.1 kB / 0.5434 GB, free: 3.602 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.925e-05/0.3798, allocations: 45.2 kB / 0.5434 GB, free: 3.555 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.3799, allocations: 207.9 kB / 0.5436 GB, free: 3.367 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002169/0.3801, allocations: 284.2 kB / 0.5439 GB, free: 3.117 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001796/0.3803, allocations: 126.6 kB / 0.544 GB, free: 3.035 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.3805, allocations: 358 kB / 0.5444 GB, free: 2.688 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002926/0.3808, allocations: 158 kB / 0.5445 GB, free: 2.617 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003962/0.3812, allocations: 281.7 kB / 0.5448 GB, free: 2.414 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007428/0.382, allocations: 466.5 kB / 0.5452 GB, free: 2.125 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.382, allocations: 1.062 kB / 0.5452 GB, free: 2.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.0008886/0.3829, allocations: 0.5782 MB / 0.5458 GB, free: 1.594 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.3829, allocations: 4 kB / 0.5458 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.3829, allocations: 4 kB / 0.5458 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.335e-05/0.3829, allocations: 8 kB / 0.5458 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005919/0.3835, allocations: 175.7 kB / 0.546 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.3836, allocations: 4.062 kB / 0.546 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003218/0.3839, allocations: 44.2 kB / 0.546 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.167e-05/0.3839, allocations: 20 kB / 0.5461 GB, free: 1.34 MB / 398.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 (97): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002337/0.3842, allocations: 181.7 kB / 0.5462 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.3843, allocations: 47.72 kB / 0.5463 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000116/0.3844, allocations: 51.64 kB / 0.5463 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.447e-06/0.3844, allocations: 8 kB / 0.5463 GB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-05/0.3844, allocations: 4 kB / 0.5463 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/0.3844, allocations: 7.922 kB / 0.5463 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001904/0.3864, allocations: 1.44 MB / 0.5477 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3864, allocations: 0 / 0.5477 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000614/0.387, allocations: 163.8 kB / 0.5479 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.527e-06/0.387, allocations: 4 kB / 0.5479 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.086e-05/0.3871, allocations: 19.94 kB / 0.5479 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.214e-05/0.3871, allocations: 15.92 kB / 0.5479 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.3871, allocations: 4.344 kB / 0.5479 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001293/0.3884, allocations: 0.9159 MB / 0.5488 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002027/0.3886, allocations: 120.8 kB / 0.549 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.682e-05/0.3887, allocations: 20 kB / 0.549 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002843/0.389, allocations: 20 kB / 0.549 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.177e-05/0.3891, allocations: 52.31 kB / 0.549 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-05/0.3891, allocations: 23.94 kB / 0.5491 GB, free: 14.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002017/0.3893, allocations: 178 kB / 0.5492 GB, free: 13.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3893, allocations: 0 / 0.5492 GB, free: 13.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006404/0.39, allocations: 144 kB / 0.5494 GB, free: 13.74 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (inertia6.phi,inertia6.w,relativeStates.phi_rel,relativeStates.w_rel,inertia4.phi,inertia4.w,inertia5.phi,inertia5.w,springDamper1.phi_rel,springDamper1.w_rel,springDamper2.phi_rel,springDamper2.w_rel,springDamper3.phi_rel,springDamper3.w_rel) * 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 (74): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001445/0.3914, allocations: 1.472 MB / 0.5508 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007553/0.3922, allocations: 459.6 kB / 0.5512 GB, free: 11.76 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3922, allocations: 0 / 0.5512 GB, free: 11.76 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002964/0.3925, allocations: 234.2 kB / 0.5515 GB, free: 11.53 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009019/0.3934, allocations: 141.6 kB / 0.5516 GB, free: 11.4 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006253/0.3997, allocations: 4.789 MB / 0.5563 GB, free: 6.398 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004351/0.4002, allocations: 0.8407 MB / 0.5571 GB, free: 5.527 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000233/0.4004, allocations: 64.64 kB / 0.5572 GB, free: 5.461 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002218/0.4006, allocations: 163.4 kB / 0.5573 GB, free: 5.301 MB / 414.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4006, allocations: 0 / 0.5573 GB, free: 5.301 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03214/0.4328, allocations: 9.911 MB / 0.567 GB, free: 11.59 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.833/9.266, allocations: 11.31 kB / 0.567 GB, free: 11.59 MB / 430.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper_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_InitializationConversion_SpringDamper.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/InitializationConversion/SpringDamper/SpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches