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.0013/0.0013, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001283/0.001283, allocations: 205.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2306/0.2306, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001554/0.001554, allocations: 76.2 kB / 480.8 MB, free: 4.609 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.329, allocations: 62.45 MB / 0.5305 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.InitializationConversion.SpringDamper): time 0.004813/0.3339, allocations: 3.29 MB / 0.5337 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002016/0.3359, allocations: 0.8308 MB / 0.5345 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004948/0.3365, allocations: 12.19 kB / 0.5345 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002958/0.3368, allocations: 74.06 kB / 0.5346 GB, free: 9.961 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006111/0.3374, allocations: 173.8 kB / 0.5348 GB, free: 9.809 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003286/0.3378, allocations: 105.5 kB / 0.5349 GB, free: 9.715 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008/0.3386, allocations: 0.605 MB / 0.5355 GB, free: 9.344 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003903/0.339, allocations: 167.9 kB / 0.5356 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004255/0.3394, allocations: 228.3 kB / 0.5358 GB, free: 9.121 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004487/0.3399, allocations: 239.6 kB / 0.5361 GB, free: 8.961 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.63e-05/0.34, allocations: 47.25 kB / 0.5361 GB, free: 8.957 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001749/0.3402, allocations: 44 kB / 0.5362 GB, free: 8.957 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.577e-05/0.3403, allocations: 106.8 kB / 0.5363 GB, free: 8.867 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004078/0.3407, allocations: 265.8 kB / 0.5365 GB, free: 8.699 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008665/0.3416, allocations: 0.5603 MB / 0.5371 GB, free: 8.293 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3416, allocations: 0 / 0.5371 GB, free: 8.293 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3416, allocations: 0 / 0.5371 GB, free: 8.293 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.349e-05/0.3416, allocations: 0 / 0.5371 GB, free: 8.293 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.001344/0.343, allocations: 0.7556 MB / 0.5378 GB, free: 7.656 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.343, allocations: 10 kB / 0.5378 GB, free: 7.656 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001039/0.3432, allocations: 85.7 kB / 0.5379 GB, free: 7.578 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001281/0.3433, allocations: 51.88 kB / 0.5379 GB, free: 7.555 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005486/0.3438, allocations: 326.4 kB / 0.5383 GB, free: 7.238 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.774e-05/0.3439, allocations: 40.75 kB / 0.5383 GB, free: 7.219 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.32e-05/0.344, allocations: 60.53 kB / 0.5383 GB, free: 7.191 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008467/0.3448, allocations: 440.7 kB / 0.5388 GB, free: 6.918 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.555e-05/0.3449, allocations: 7.531 kB / 0.5388 GB, free: 6.914 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.797e-05/0.3449, allocations: 20.12 kB / 0.5388 GB, free: 6.898 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.345, allocations: 12.06 kB / 0.5388 GB, free: 6.898 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005694/0.3455, allocations: 315.1 kB / 0.5391 GB, free: 6.754 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00198/0.3475, allocations: 1.143 MB / 0.5402 GB, free: 5.844 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008768/0.3484, allocations: 480.9 kB / 0.5407 GB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003315/0.3488, allocations: 222.3 kB / 0.5409 GB, free: 5.426 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.015e-05/0.3488, allocations: 5.5 kB / 0.5409 GB, free: 5.426 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.692e-05/0.3489, allocations: 43.41 kB / 0.5409 GB, free: 5.379 MB / 398.1 MB Notification: Performance of pre-optimization done (n=62): time 2.665e-06/0.3489, allocations: 3.938 kB / 0.5409 GB, free: 5.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.00358/0.3525, allocations: 2.128 MB / 0.543 GB, free: 3.824 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.3525, allocations: 89.61 kB / 0.5431 GB, free: 3.727 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002599/0.3528, allocations: 258.8 kB / 0.5434 GB, free: 3.543 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.121e-05/0.3528, allocations: 44.95 kB / 0.5434 GB, free: 3.496 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.353, allocations: 203.6 kB / 0.5436 GB, free: 3.312 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001942/0.3532, allocations: 274.6 kB / 0.5439 GB, free: 3.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.3533, allocations: 119.3 kB / 0.544 GB, free: 2.996 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.3535, allocations: 358 kB / 0.5443 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002784/0.3538, allocations: 158 kB / 0.5445 GB, free: 2.578 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003553/0.3541, allocations: 277.5 kB / 0.5447 GB, free: 2.379 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006723/0.3548, allocations: 469.3 kB / 0.5452 GB, free: 2.086 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.3548, allocations: 1.125 kB / 0.5452 GB, free: 2.086 MB / 398.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.0009211/0.3557, allocations: 0.5715 MB / 0.5457 GB, free: 1.594 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.3558, allocations: 7.984 kB / 0.5457 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.3558, allocations: 4 kB / 0.5457 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/0.3558, allocations: 4 kB / 0.5457 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005805/0.3564, allocations: 183.7 kB / 0.5459 GB, free: 1.398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.753e-05/0.3564, allocations: 4.062 kB / 0.5459 GB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003166/0.3568, allocations: 40.2 kB / 0.546 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.459e-05/0.3568, allocations: 20 kB / 0.546 GB, free: 1.336 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.0002071/0.357, allocations: 185.6 kB / 0.5462 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.3571, allocations: 47.44 kB / 0.5462 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001271/0.3573, allocations: 55.64 kB / 0.5463 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.3573, allocations: 8 kB / 0.5463 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.3573, allocations: 0 / 0.5463 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.3573, allocations: 11.92 kB / 0.5463 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002159/0.3595, allocations: 1.428 MB / 0.5477 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.3595, allocations: 4 kB / 0.5477 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006221/0.3601, allocations: 163.8 kB / 0.5478 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.098e-05/0.3601, allocations: 7.938 kB / 0.5478 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.04e-05/0.3602, allocations: 19.94 kB / 0.5479 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.049e-05/0.3602, allocations: 7.984 kB / 0.5479 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.3602, allocations: 7.938 kB / 0.5479 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.3614, allocations: 0.9123 MB / 0.5488 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002633/0.3617, allocations: 124.5 kB / 0.5489 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.255e-05/0.3618, allocations: 20 kB / 0.5489 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000302/0.3621, allocations: 16 kB / 0.5489 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.895e-05/0.3622, allocations: 52.38 kB / 0.549 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.032e-05/0.3622, allocations: 23.94 kB / 0.549 GB, free: 14.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001663/0.3624, allocations: 185.9 kB / 0.5492 GB, free: 13.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3624, allocations: 0 / 0.5492 GB, free: 13.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005796/0.363, allocations: 140 kB / 0.5493 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.001352/0.3643, allocations: 1.475 MB / 0.5507 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007356/0.3651, allocations: 452.1 kB / 0.5512 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.3651, allocations: 0 / 0.5512 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003312/0.3654, allocations: 242.2 kB / 0.5514 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.0009241/0.3663, allocations: 135.5 kB / 0.5515 GB, free: 11.4 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006951/0.3733, allocations: 4.755 MB / 0.5562 GB, free: 6.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005851/0.3739, allocations: 0.8486 MB / 0.557 GB, free: 5.551 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002395/0.3742, allocations: 56.66 kB / 0.5571 GB, free: 5.492 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002858/0.3745, allocations: 171.4 kB / 0.5572 GB, free: 5.324 MB / 414.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3745, allocations: 0 / 0.5572 GB, free: 5.324 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0342/0.4087, allocations: 10.09 MB / 0.5671 GB, free: 11.44 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.416/8.824, allocations: 12 kB / 0.5671 GB, free: 11.43 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_InitializationConversion_SpringDamper_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_InitializationConversion_SpringDamper.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper_res.mat","/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