Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real [:1:1-1:33:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006219/0.0006219, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0004209/0.0004209, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.3327/0.3327, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me_cs",version="3.0",platforms={"wasm"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me_cs",version="3.0",platforms={"wasm"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.306e-06/3.306e-06, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 1.647e-05/1.978e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.005481/0.005501, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.00264/0.008141, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.000345/0.008486, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.0004075/0.008894, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.0004956/0.009389, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.0008516/0.01024, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.0006863/0.01093, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.0002907/0.01122, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.0006494/0.01187, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.000471/0.01234, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0001141/0.01245, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 8.52e-05/0.01254, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.0002161/0.01275, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0002862/0.01304, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.0009748/0.01401, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 5.854e-05/0.01407, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 4.298e-06/0.01408, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 1.013e-05/0.01409, allocations: 0 / 0, free: 0 / 0 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.002793/0.01688, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 8.356e-05/0.01696, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003503/0.01731, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004263/0.01774, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.001188/0.01893, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006072/0.01954, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001699/0.01971, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.003323/0.02303, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 4.132e-05/0.02307, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001225/0.02319, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.812e-05/0.02321, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003696/0.02691, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00448/0.03139, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.002865/0.03425, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.001455/0.03571, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 7.161e-05/0.03578, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.107e-05/0.03584, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=45): time 5.689e-05/0.0359, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=73): time 0.06684/0.1027, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002333/0.103, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008768/0.1038, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0005663/0.1044, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.0001814/0.1046, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0005885/0.1052, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.001472/0.1067, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.0002805/0.1069, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.004102/0.111, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.004205/0.1152, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.007767/0.123, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-05/0.123, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=67) (initialization): time 0.01105/0.1341, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 4.027e-05/0.1341, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.586e-05/0.1341, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 3.092e-05/0.1342, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002876/0.137, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.49e-05/0.1371, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001615/0.1387, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003965/0.1391, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,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 (67): * Single equations (assignments): 67 * 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.001397/0.1405, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001738/0.1422, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004893/0.1427, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.239e-05/0.1427, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 1.461e-05/0.1427, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.418e-05/0.1428, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01349/0.1562, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-05/0.1563, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001627/0.1579, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-05/0.158, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002717/0.1582, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.893e-05/0.1583, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.98e-05/0.1583, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008709/0.167, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.001048/0.1681, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003258/0.1684, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001291/0.1697, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001007/0.1707, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002037/0.1709, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.0006003/0.1715, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 1.109e-05/0.1715, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.0028/0.1743, allocations: 0 / 0, free: 0 / 0 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.009806/0.1841, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.007227/0.1913, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 1.954e-05/0.1914, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.002731/0.1941, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00556/0.1997, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03691/0.2366, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006703/0.2372, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.0008036/0.238, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002667/0.2407, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.000697/0.2414, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU modelDescription.xml: time 0.003108/0.2445, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU model kernel: time 0.00244/0.2469, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU translated model: time 0.02561/0.2726, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU component link: time 7.514e-06/0.2726, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU precompile: time 1.429e-05/0.2726, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU write (0.1 MB unzipped): time 0.0001802/0.2728, allocations: 0 / 0, free: 0 / 0 Notification: Building FMU for platform 'wasm' (1/1). Notification: Finished FMU for platform 'wasm' (1/1). " [Timeout remaining time 660] simulate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,startTime=0,stopTime=4,tolerance=1e-06,numberOfIntervals=8007,outputFormat="mat",variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks",simflags=" -alarm=240 -emit_protected -lv LOG_STATS -startTime=0 -stopTime=4 -tolerance=1e-06 -stepSize=0.000499563 -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat",resimulateExecutable="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu") [Timeout 240] "" [Timeout remaining time 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches simulate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,startTime=0,stopTime=4,tolerance=1e-06,numberOfIntervals=8007,outputFormat="mat",variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks",simflags=" -alarm=240 -emit_protected -lv LOG_STATS -startTime=0 -stopTime=4 -tolerance=1e-06 -stepSize=0.000499563 -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_me_res.mat -s fmi3:me:daskr",resimulateExecutable="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu") [Timeout 240] "" [Timeout remaining time 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_me_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_me.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches simulate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,startTime=0,stopTime=4,tolerance=1e-06,numberOfIntervals=8007,outputFormat="mat",variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks",simflags=" -alarm=240 -emit_protected -lv LOG_STATS -startTime=0 -stopTime=4 -tolerance=1e-06 -stepSize=0.000499563 -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_cs_res.mat -s fmi3:cs",resimulateExecutable="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu") [Timeout 240] "" [Timeout remaining time 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_cs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_cs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.u,PI.x,PI.y,__zc_0,__zc_1,__zc_2,__zc_3,__zc_4,angle.flange.phi,angle.flange.tau,angle.phi,der(load.w),der(speed.flange.phi),fastClock.factor,fastClock.resolution,fastClock.useSolver,feedback1.u1,feedback1.u2,feedback1.y,feedback2.u1,feedback2.u2,feedback2.y,gain.k,gain.u,gain.y,hold1.u,hold1.y,hold1.y_start,kinematicPTP.endTime,kinematicPTP.moving[1],kinematicPTP.nout,kinematicPTP.q[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd[1],kinematicPTP.qd_max[1],kinematicPTP.qdd[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.a,load.flange_a.phi,load.flange_a.tau,load.flange_b.phi,load.flange_b.tau,load.phi,load.stateSelect,load.w,previous(PI.x),sample1.u,sample1.y,sample2.u,sample2.y,sample3.u,sample3.y,slowClock.factor,slowClock.resolution,slowClock.useSolver,speed.flange.phi,speed.flange.tau,speed.w,super.factor,super.inferFactor,super.u,super.y,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport [Calling sys.exit(0), Time elapsed: 1.9130324310390279]