Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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) 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(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001256/0.001256, allocations: 121.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001414/0.001414, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.69/1.69, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3673/0.3692, allocations: 50.54 MB / 408.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004189/0.3735, allocations: 2.399 MB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00194/0.3754, allocations: 0.865 MB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001916/0.3757, allocations: 11.94 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003379/0.376, allocations: 47.58 kB / 412.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002417/0.3763, allocations: 67.48 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006705/0.377, allocations: 199.5 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000489/0.3775, allocations: 399.5 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002512/0.3777, allocations: 99.47 kB / 412.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003533/0.3781, allocations: 167.4 kB / 413 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003029/0.3784, allocations: 183.2 kB / 413.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.306e-05/0.3785, allocations: 43.98 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.282e-05/0.3785, allocations: 32 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001264/0.3787, allocations: 107.7 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001565/0.3788, allocations: 163.1 kB / 413.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004994/0.3793, allocations: 373.3 kB / 413.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.3793, allocations: 4 kB / 413.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3794, allocations: 0 / 413.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.3794, allocations: 0 / 413.9 MB, free: 12.42 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001383/0.3808, allocations: 0.674 MB / 414.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.3808, allocations: 8.031 kB / 414.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.923e-05/0.3809, allocations: 70.72 kB / 414.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.503e-05/0.381, allocations: 48.7 kB / 414.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004397/0.3814, allocations: 315.3 kB / 415 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002263/0.3817, allocations: 134.3 kB / 415.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.652e-05/0.3818, allocations: 32.31 kB / 415.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/0.383, allocations: 0.5776 MB / 415.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.383, allocations: 0 / 415.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.275e-05/0.3831, allocations: 12 kB / 415.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.3831, allocations: 8 kB / 415.7 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001318/0.3844, allocations: 0.5074 MB / 416.2 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001678/0.3861, allocations: 1.026 MB / 417.3 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/0.3877, allocations: 0.5102 MB / 417.8 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005853/0.3883, allocations: 255.4 kB / 418 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.586e-05/0.3883, allocations: 8 kB / 418 MB, free: 7.992 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.112e-05/0.3884, allocations: 46.5 kB / 418.1 MB, free: 7.938 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.505e-06/0.3884, allocations: 0 / 418.1 MB, free: 7.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03826/0.4267, allocations: 5.772 MB / 423.8 MB, free: 2.156 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001464/0.4268, allocations: 145 kB / 424 MB, free: 1.984 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003434/0.4272, allocations: 262.5 kB / 424.2 MB, free: 1.719 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.826e-05/0.4273, allocations: 33.7 kB / 424.3 MB, free: 1.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.4274, allocations: 153.7 kB / 424.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002288/0.4277, allocations: 198.4 kB / 424.6 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002892/0.4279, allocations: 114.6 kB / 424.7 MB, free: 1.211 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.4281, allocations: 346.8 kB / 425.1 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001539/0.4297, allocations: 0.6149 MB / 425.7 MB, free: 252 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001708/0.4314, allocations: 0.8041 MB / 426.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00294/0.4343, allocations: 1.247 MB / 427.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.4344, allocations: 4 kB / 427.7 MB, free: 14.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003502/0.4379, allocations: 1.406 MB / 429.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.773e-05/0.4379, allocations: 8 kB / 429.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/0.4379, allocations: 4 kB / 429.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.983e-05/0.438, allocations: 12 kB / 429.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001413/0.4394, allocations: 207.7 kB / 429.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.164e-05/0.4394, allocations: 11.94 kB / 429.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009744/0.4404, allocations: 107.8 kB / 429.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.032e-05/0.4405, allocations: 24 kB / 429.5 MB, free: 12.25 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0003657/0.4409, allocations: 189.6 kB / 429.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003516/0.4412, allocations: 169.6 kB / 429.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001832/0.4414, allocations: 67.61 kB / 429.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.099e-05/0.4414, allocations: 12.09 kB / 429.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/0.4415, allocations: 7.938 kB / 429.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/0.4415, allocations: 3.984 kB / 429.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004807/0.4463, allocations: 2.183 MB / 432.1 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-05/0.4463, allocations: 12 kB / 432.1 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007956/0.4471, allocations: 184.3 kB / 432.3 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.581e-05/0.4471, allocations: 12 kB / 432.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.289e-05/0.4472, allocations: 28 kB / 432.4 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-05/0.4472, allocations: 19.94 kB / 432.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.109e-05/0.4472, allocations: 11.94 kB / 432.4 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003109/0.4504, allocations: 1.568 MB / 434 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002611/0.4506, allocations: 180.7 kB / 434.1 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.745e-05/0.4507, allocations: 24 kB / 434.2 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006668/0.4514, allocations: 75.91 kB / 434.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002054/0.4516, allocations: 99.67 kB / 434.3 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.808e-05/0.4517, allocations: 28 kB / 434.4 MB, free: 7.027 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002075/0.4519, allocations: 193.9 kB / 434.5 MB, free: 6.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4519, allocations: 0 / 434.5 MB, free: 6.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007448/0.4526, allocations: 127.9 kB / 434.7 MB, free: 6.715 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.003601/0.4562, allocations: 2.125 MB / 436.8 MB, free: 4.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002825/0.4591, allocations: 1.139 MB / 437.9 MB, free: 3.289 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.155e-05/0.4591, allocations: 4 kB / 437.9 MB, free: 3.285 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009742/0.4601, allocations: 342.4 kB / 438.3 MB, free: 2.953 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009846/0.4611, allocations: 167 kB / 438.4 MB, free: 2.793 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01332/0.4744, allocations: 6.905 MB / 445.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000518/0.475, allocations: 0.8285 MB / 446.2 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005225/0.4755, allocations: 104.1 kB / 446.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003885/0.4759, allocations: 123.4 kB / 446.4 MB, free: 10.3 MB / 366.1 MB Notification: Performance of SimCode: time 7.72e-07/0.4759, allocations: 0 / 446.4 MB, free: 10.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04479/0.5207, allocations: 11.63 MB / 458 MB, free: 14.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.412/9.933, allocations: 4.062 kB / 458 MB, free: 14.79 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable load.phi in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable load.phi from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! " Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.w,speed.flange.phi