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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001723/0.001723, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002252/0.002252, allocations: 214 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.592/1.592, allocations: 230.5 MB / 257.4 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 67.89 kB / 377.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3312, allocations: 53.4 MB / 431.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.00419/0.3354, allocations: 2.404 MB / 433.6 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001799/0.3372, allocations: 0.8533 MB / 434.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001711/0.3374, allocations: 7.938 kB / 434.4 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003352/0.3377, allocations: 51.58 kB / 434.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002063/0.3379, allocations: 59.55 kB / 434.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005711/0.3385, allocations: 179.4 kB / 434.7 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004858/0.339, allocations: 391.5 kB / 435.1 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002208/0.3392, allocations: 72.34 kB / 435.2 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003394/0.3395, allocations: 171.5 kB / 435.3 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002903/0.3398, allocations: 187.2 kB / 435.5 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.863e-05/0.3399, allocations: 32 kB / 435.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.148e-05/0.3399, allocations: 39.94 kB / 435.6 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001227/0.34, allocations: 87.73 kB / 435.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001733/0.3402, allocations: 155.2 kB / 435.8 MB, free: 2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004725/0.3407, allocations: 335 kB / 436.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.3407, allocations: 4 kB / 436.1 MB, free: 1.672 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3407, allocations: 0 / 436.1 MB, free: 1.672 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.3407, allocations: 0 / 436.1 MB, free: 1.672 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.001346/0.3421, allocations: 0.5444 MB / 436.7 MB, free: 1.098 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/0.3421, allocations: 8.031 kB / 436.7 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.382e-05/0.3422, allocations: 74.72 kB / 436.8 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.794e-05/0.3423, allocations: 40.7 kB / 436.8 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004834/0.3428, allocations: 215.1 kB / 437 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003554/0.3431, allocations: 351.9 kB / 437.4 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.771e-05/0.3432, allocations: 32.36 kB / 437.4 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/0.3444, allocations: 0.5736 MB / 438 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.3444, allocations: 7.938 kB / 438 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.31e-05/0.3445, allocations: 8 kB / 438 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.3445, allocations: 8 kB / 438 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/0.3458, allocations: 0.5074 MB / 438.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.3474, allocations: 0.9491 MB / 439.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001568/0.349, allocations: 482.5 kB / 439.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005975/0.3496, allocations: 235.5 kB / 440.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.192e-05/0.3497, allocations: 11.98 kB / 440.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.816e-05/0.3497, allocations: 46.5 kB / 440.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.404e-06/0.3497, allocations: 0 / 440.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03737/0.3871, allocations: 5.732 MB / 445.9 MB, free: 7.586 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/0.3872, allocations: 152.9 kB / 446.1 MB, free: 7.406 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002508/0.3874, allocations: 200.1 kB / 446.3 MB, free: 7.199 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.088e-05/0.3875, allocations: 42.08 kB / 446.3 MB, free: 7.152 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.3876, allocations: 141.8 kB / 446.5 MB, free: 7.008 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002131/0.3879, allocations: 198.3 kB / 446.7 MB, free: 6.812 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002814/0.3881, allocations: 110.6 kB / 446.8 MB, free: 6.699 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.3883, allocations: 350.7 kB / 447.1 MB, free: 6.348 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001547/0.3899, allocations: 0.6149 MB / 447.7 MB, free: 5.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001678/0.3915, allocations: 0.8002 MB / 448.5 MB, free: 4.855 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002973/0.3945, allocations: 1.244 MB / 449.8 MB, free: 3.535 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.3945, allocations: 4 kB / 449.8 MB, free: 3.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003454/0.398, allocations: 1.394 MB / 451.2 MB, free: 2.129 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.645e-05/0.398, allocations: 8 kB / 451.2 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/0.398, allocations: 8 kB / 451.2 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.738e-05/0.398, allocations: 8 kB / 451.2 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001307/0.3993, allocations: 215.7 kB / 451.4 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.074e-05/0.3994, allocations: 15.92 kB / 451.4 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009344/0.4003, allocations: 103.8 kB / 451.5 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.076e-05/0.4004, allocations: 27.98 kB / 451.5 MB, free: 1.75 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.0003669/0.4007, allocations: 177.7 kB / 451.7 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003329/0.4011, allocations: 153.7 kB / 451.9 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001906/0.4013, allocations: 63.3 kB / 451.9 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/0.4013, allocations: 8 kB / 451.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/0.4013, allocations: 4 kB / 451.9 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.4013, allocations: 7.922 kB / 452 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004883/0.4062, allocations: 2.136 MB / 454.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.818e-05/0.4062, allocations: 12 kB / 454.1 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007529/0.407, allocations: 191.8 kB / 454.3 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.69e-05/0.407, allocations: 12 kB / 454.3 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.335e-05/0.407, allocations: 24 kB / 454.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.041e-05/0.4071, allocations: 19.94 kB / 454.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.088e-05/0.4071, allocations: 15.88 kB / 454.4 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003268/0.4103, allocations: 1.557 MB / 455.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002425/0.4106, allocations: 91.64 kB / 456 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.795e-05/0.4107, allocations: 31.92 kB / 456 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005761/0.4112, allocations: 75.98 kB / 456.1 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/0.4115, allocations: 99.64 kB / 456.2 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.589e-05/0.4115, allocations: 35.98 kB / 456.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00016/0.4117, allocations: 145.2 kB / 456.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4117, allocations: 0 / 456.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007163/0.4124, allocations: 119.9 kB / 456.5 MB, free: 12.46 MB / 366.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.003657/0.416, allocations: 2.121 MB / 458.6 MB, free: 10.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002926/0.419, allocations: 1.026 MB / 459.6 MB, free: 9.148 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/0.419, allocations: 1.375 kB / 459.6 MB, free: 9.148 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009957/0.42, allocations: 337.8 kB / 460 MB, free: 8.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009906/0.421, allocations: 140.8 kB / 460.1 MB, free: 8.688 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01432/0.4353, allocations: 6.785 MB / 466.9 MB, free: 1.406 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006822/0.436, allocations: 0.8128 MB / 467.7 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005812/0.4366, allocations: 91.33 kB / 467.8 MB, free: 480 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004264/0.437, allocations: 119.4 kB / 467.9 MB, free: 360 kB / 366.1 MB Notification: Performance of SimCode: time 1.413e-06/0.437, allocations: 0 / 467.9 MB, free: 360 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04997/0.487, allocations: 12.03 MB / 479.9 MB, free: 4.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.09/12.58, allocations: 8 kB / 480 MB, free: 4.422 MB / 382.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000499563 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "Error: Could not read variable load.phi in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable load.phi from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.w,speed.flange.phi [Calling sys.exit(0), Time elapsed: 15.436832961000619]