Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001869/0.00187, allocations: 118.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002671/0.002671, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.558/1.558, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.362/0.3632, allocations: 50.54 MB / 408.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003754/0.367, allocations: 2.354 MB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001447/0.3685, allocations: 0.8338 MB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001924/0.3687, allocations: 7.938 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002634/0.369, allocations: 55.56 kB / 412 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000195/0.3692, allocations: 55.55 kB / 412 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006118/0.3698, allocations: 175.6 kB / 412.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003852/0.3702, allocations: 391.5 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002077/0.3704, allocations: 99.81 kB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002896/0.3707, allocations: 163.5 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000246/0.371, allocations: 179.2 kB / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.051e-05/0.371, allocations: 35.94 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.738e-05/0.3711, allocations: 40 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.3712, allocations: 91.78 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001366/0.3714, allocations: 147.2 kB / 413.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003584/0.3717, allocations: 332.5 kB / 413.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3717, allocations: 3.984 kB / 413.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.3717, allocations: 0 / 413.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.952e-06/0.3717, allocations: 0 / 413.7 MB, free: 12.57 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001141/0.3729, allocations: 0.62 MB / 414.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.3729, allocations: 8.031 kB / 414.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.361e-05/0.373, allocations: 70.72 kB / 414.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.098e-05/0.3731, allocations: 44.56 kB / 414.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003497/0.3735, allocations: 288.2 kB / 414.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001883/0.3737, allocations: 134.3 kB / 414.8 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.135e-05/0.3737, allocations: 28.38 kB / 414.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/0.3748, allocations: 0.5698 MB / 415.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.016e-05/0.3748, allocations: 8 kB / 415.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.209e-05/0.3749, allocations: 12 kB / 415.4 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.3749, allocations: 8 kB / 415.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00121/0.3761, allocations: 0.5035 MB / 415.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001515/0.3776, allocations: 1.002 MB / 416.9 MB, free: 9.074 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001457/0.3791, allocations: 0.5137 MB / 417.5 MB, free: 8.527 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005741/0.3797, allocations: 263.3 kB / 417.7 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.241e-05/0.3798, allocations: 8 kB / 417.7 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.293e-05/0.3798, allocations: 34.56 kB / 417.8 MB, free: 8.207 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.623e-06/0.3798, allocations: 0 / 417.8 MB, free: 8.207 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.0366/0.4164, allocations: 5.721 MB / 423.5 MB, free: 2.477 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001697/0.4166, allocations: 149 kB / 423.6 MB, free: 2.301 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002852/0.4169, allocations: 204.7 kB / 423.8 MB, free: 2.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.757e-05/0.417, allocations: 37.7 kB / 423.9 MB, free: 2.047 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.4171, allocations: 141.6 kB / 424 MB, free: 1.902 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002306/0.4174, allocations: 189.3 kB / 424.2 MB, free: 1.715 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003488/0.4177, allocations: 110.7 kB / 424.3 MB, free: 1.602 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001979/0.4179, allocations: 346.8 kB / 424.6 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001549/0.4195, allocations: 0.6187 MB / 425.2 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001654/0.4212, allocations: 0.7925 MB / 426 MB, free: 15.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002873/0.4241, allocations: 1.247 MB / 427.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.4241, allocations: 0 / 427.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003399/0.4275, allocations: 1.394 MB / 428.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.4275, allocations: 11 kB / 428.7 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.938e-05/0.4276, allocations: 8.375 kB / 428.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.589e-05/0.4276, allocations: 15.94 kB / 428.7 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/0.4289, allocations: 215.6 kB / 428.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.086e-05/0.429, allocations: 8 kB / 428.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009699/0.43, allocations: 103.7 kB / 429 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.025e-05/0.4301, allocations: 35.98 kB / 429.1 MB, free: 12.65 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.0003485/0.4304, allocations: 177.5 kB / 429.2 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003374/0.4308, allocations: 157.1 kB / 429.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000168/0.4309, allocations: 67.3 kB / 429.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.431, allocations: 8 kB / 429.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.431, allocations: 0 / 429.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.431, allocations: 3.984 kB / 429.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004565/0.4356, allocations: 2.172 MB / 431.6 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.862e-05/0.4356, allocations: 8 kB / 431.7 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007285/0.4363, allocations: 179.7 kB / 431.8 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.728e-05/0.4364, allocations: 16 kB / 431.8 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.598e-05/0.4364, allocations: 31.98 kB / 431.9 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.641e-05/0.4365, allocations: 15.94 kB / 431.9 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.073e-05/0.4365, allocations: 16.16 kB / 431.9 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002936/0.4394, allocations: 1.561 MB / 433.5 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002446/0.4397, allocations: 160.6 kB / 433.6 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.262e-05/0.4398, allocations: 31.98 kB / 433.7 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006073/0.4404, allocations: 75.98 kB / 433.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002007/0.4406, allocations: 99.66 kB / 433.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.756e-05/0.4407, allocations: 32 kB / 433.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001507/0.4408, allocations: 136.1 kB / 434 MB, free: 7.355 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4408, allocations: 0 / 434 MB, free: 7.355 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007962/0.4416, allocations: 127.9 kB / 434.1 MB, free: 7.23 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.003339/0.445, allocations: 2.117 MB / 436.2 MB, free: 4.953 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002736/0.4477, allocations: 1.14 MB / 437.4 MB, free: 3.812 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/0.4478, allocations: 8.125 kB / 437.4 MB, free: 3.805 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009567/0.4487, allocations: 337.8 kB / 437.7 MB, free: 3.477 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009772/0.4497, allocations: 153.5 kB / 437.9 MB, free: 3.332 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0132/0.4629, allocations: 6.783 MB / 444.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004906/0.4635, allocations: 0.809 MB / 445.5 MB, free: 11.22 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004964/0.464, allocations: 95.31 kB / 445.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004173/0.4644, allocations: 119.4 kB / 445.7 MB, free: 11 MB / 366.1 MB Notification: Performance of SimCode: time 2.295e-06/0.4644, allocations: 4 kB / 445.7 MB, free: 11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03743/0.5019, allocations: 11.6 MB / 457.3 MB, free: 15.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.088/9.59, allocations: 3.375 kB / 457.3 MB, free: 15.51 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches