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.001276/0.001276, 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.001139/0.001139, 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.562/1.562, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 59.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.3583, allocations: 50.54 MB / 408.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003752/0.3621, allocations: 2.361 MB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001587/0.3637, allocations: 0.8299 MB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001816/0.3639, allocations: 7.938 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000306/0.3643, allocations: 55.56 kB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002084/0.3645, allocations: 51.56 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005484/0.3651, allocations: 187.6 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003943/0.3655, allocations: 379.5 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002501/0.3657, allocations: 103.8 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003242/0.366, allocations: 163.5 kB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002512/0.3663, allocations: 183.2 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.299e-05/0.3664, allocations: 32 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.27e-05/0.3664, allocations: 36 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.3665, allocations: 87.8 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001401/0.3667, allocations: 155.2 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004091/0.3671, allocations: 340.5 kB / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.3671, allocations: 0 / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.3671, allocations: 0 / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.455e-06/0.3672, allocations: 0 / 413.7 MB, free: 12.59 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.001204/0.3684, allocations: 0.62 MB / 414.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.3684, allocations: 8.031 kB / 414.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.962e-05/0.3685, allocations: 70.72 kB / 414.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.405e-05/0.3686, allocations: 36.56 kB / 414.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004702/0.3691, allocations: 288.2 kB / 414.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002082/0.3693, allocations: 138.3 kB / 414.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.002e-05/0.3693, allocations: 28.38 kB / 414.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/0.3706, allocations: 0.5697 MB / 415.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.005e-05/0.3706, allocations: 4 kB / 415.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.215e-05/0.3707, allocations: 12 kB / 415.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.3707, allocations: 8 kB / 415.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001414/0.3721, allocations: 0.5112 MB / 416 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001592/0.3737, allocations: 0.9984 MB / 417 MB, free: 9.098 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001651/0.3754, allocations: 0.5024 MB / 417.5 MB, free: 8.559 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006749/0.3761, allocations: 270.7 kB / 417.7 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.503e-05/0.3761, allocations: 8.141 kB / 417.7 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.3762, allocations: 42.55 kB / 417.8 MB, free: 8.227 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.414e-06/0.3762, allocations: 0 / 417.8 MB, free: 8.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.0385/0.4147, allocations: 5.717 MB / 423.5 MB, free: 2.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001288/0.4149, allocations: 141 kB / 423.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003108/0.4152, allocations: 212.7 kB / 423.8 MB, free: 2.113 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.994e-05/0.4153, allocations: 33.7 kB / 423.9 MB, free: 2.074 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.4154, allocations: 141.6 kB / 424 MB, free: 1.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002718/0.4157, allocations: 193.3 kB / 424.2 MB, free: 1.738 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003427/0.4161, allocations: 110.6 kB / 424.3 MB, free: 1.625 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.4163, allocations: 338.8 kB / 424.6 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00172/0.418, allocations: 0.6227 MB / 425.3 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001767/0.4198, allocations: 0.7925 MB / 426 MB, free: 15.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003149/0.4229, allocations: 1.251 MB / 427.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.922e-06/0.423, allocations: 0 / 427.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003884/0.4269, allocations: 1.394 MB / 428.7 MB, free: 13.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.607e-05/0.4269, allocations: 8 kB / 428.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.427, allocations: 8.312 kB / 428.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.795e-05/0.427, allocations: 8.156 kB / 428.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001384/0.4284, allocations: 219.6 kB / 428.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.474e-05/0.4284, allocations: 8 kB / 428.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001014/0.4295, allocations: 103.7 kB / 429 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.919e-05/0.4296, allocations: 28 kB / 429.1 MB, free: 12.69 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.0003581/0.43, allocations: 189.5 kB / 429.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003606/0.4303, allocations: 157.1 kB / 429.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001734/0.4305, allocations: 67.3 kB / 429.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.4305, allocations: 8 kB / 429.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.4305, allocations: 0 / 429.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.4306, allocations: 7.984 kB / 429.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005276/0.4358, allocations: 2.168 MB / 431.7 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.93e-05/0.4359, allocations: 12.25 kB / 431.7 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008076/0.4367, allocations: 183.7 kB / 431.8 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-05/0.4368, allocations: 16 kB / 431.9 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.421e-05/0.4368, allocations: 20.23 kB / 431.9 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.111e-05/0.4369, allocations: 23.92 kB / 431.9 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-05/0.4369, allocations: 16.33 kB / 431.9 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003461/0.4403, allocations: 1.557 MB / 433.5 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002817/0.4407, allocations: 164.6 kB / 433.6 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.5e-05/0.4408, allocations: 28 kB / 433.7 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006747/0.4414, allocations: 79.97 kB / 433.7 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002333/0.4417, allocations: 91.67 kB / 433.8 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.011e-05/0.4417, allocations: 32 kB / 433.9 MB, free: 7.516 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000162/0.4419, allocations: 140.1 kB / 434 MB, free: 7.379 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4419, allocations: 0 / 434 MB, free: 7.379 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007483/0.4427, allocations: 123.9 kB / 434.1 MB, free: 7.258 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.003784/0.4465, allocations: 2.129 MB / 436.2 MB, free: 4.969 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003097/0.4496, allocations: 1.14 MB / 437.4 MB, free: 3.828 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/0.4496, allocations: 0 / 437.4 MB, free: 3.828 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001118/0.4508, allocations: 341.9 kB / 437.7 MB, free: 3.496 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.4519, allocations: 143.5 kB / 437.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01462/0.4665, allocations: 6.783 MB / 444.6 MB, free: 12.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005033/0.4671, allocations: 0.809 MB / 445.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000555/0.4677, allocations: 91.33 kB / 445.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004044/0.4681, allocations: 119.4 kB / 445.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4681, allocations: 0 / 445.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03928/0.5074, allocations: 11.61 MB / 457.3 MB, free: 15.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.862/9.369, allocations: 10.78 kB / 457.3 MB, free: 15.53 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