Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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 trunk/package.mo): time 0.0004762/0.0004762, allocations: 0 / 0, free: 0 / 0 " [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.0005542/0.0005542, allocations: 0 / 0, free: 0 / 0 " [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 0.3501/0.3501, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] 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.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me_cs",version="3.0",platforms={"wasm"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me_cs",version="3.0",platforms={"wasm"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 5.73e-06/5.73e-06, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 2.479e-05/3.052e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.005489/0.00552, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.002184/0.007704, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.0001917/0.007896, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.0001503/0.008046, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.0002131/0.008259, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.0006686/0.008928, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.0003923/0.00932, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.0003134/0.009634, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.000465/0.0101, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.0002248/0.01032, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 6.378e-05/0.01039, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 8.38e-05/0.01047, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 8.607e-05/0.01056, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.01072, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.0005746/0.01129, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 3.627e-05/0.01133, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 5.551e-06/0.01134, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 8.806e-06/0.01134, 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.001992/0.01334, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 7.949e-05/0.01342, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002574/0.01367, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005717/0.01424, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007717/0.01502, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001678/0.01518, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.01529, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.00204/0.01733, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.01735, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.559e-05/0.01743, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.01744, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.01846, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001772/0.02023, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.001197/0.02143, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.0006154/0.02205, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 5.583e-05/0.0221, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006627/0.02277, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=23): time 4.77e-05/0.02281, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=23): time 0.00219/0.025, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001525/0.02516, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003597/0.02552, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.00011/0.02563, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.02576, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 8.319e-05/0.02584, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002498/0.02609, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.0003468/0.02644, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004376/0.02688, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004669/0.02734, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.0007635/0.02811, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.02811, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=16) (initialization): time 0.001339/0.02945, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 6.161e-05/0.02951, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.02952, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.02953, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002626/0.0298, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.02981, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002481/0.03005, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.882e-05/0.03012, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,$whenCondition2,rotationalClock.less.y,trigger_interval_input.count,$PRE.trigger_interval_input.count,trigger_interval_input.T_start,$PRE.trigger_interval_input.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 1 (rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 1 * 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.0003841/0.03051, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006836/0.03119, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001613/0.03135, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.078e-06/0.03136, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.03137, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.03138, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001979/0.03336, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.03337, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003878/0.03376, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 9.728e-06/0.03376, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-05/0.03385, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.616e-06/0.03386, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.03386, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/0.03543, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.0001441/0.03558, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001348/0.03571, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003506/0.03606, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/0.03625, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.058e-05/0.03632, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.0002529/0.03657, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 6.312e-06/0.03658, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.00126/0.03784, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.cast.y,rotationalClock.changed.u,rotationalClock.changed.y,rotationalClock.less.y,$whenCondition1,trigger_interval_input.T_start,trigger_interval_input.count,$whenCondition2) * Number of discrete states: 1 (trigger_interval_input.count) * Number of clocked states: 1 (rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.003232/0.04107, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.001178/0.04225, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.04226, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.0004154/0.04267, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001992/0.04466, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007837/0.0525, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002724/0.05277, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.0001337/0.05291, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004653/0.05337, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.0004269/0.0538, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU modelDescription.xml: time 0.001961/0.05576, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU model kernel: time 0.001456/0.05722, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU translated model: time 0.02087/0.07808, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU component link: time 5.721e-06/0.07809, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU precompile: time 9.377e-06/0.0781, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU write (0 MB unzipped): time 0.0001541/0.07825, 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.Elementary.ClockSignals.RotationalSample,startTime=0,stopTime=2,tolerance=1e-06,numberOfIntervals=5095,outputFormat="mat",variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample",simflags=" -alarm=240 -emit_protected -lv LOG_STATS -startTime=0 -stopTime=2 -tolerance=1e-06 -stepSize=0.000392542 -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat",resimulateExecutable="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu") [Timeout 240] "" [Timeout remaining time 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches simulate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,startTime=0,stopTime=2,tolerance=1e-06,numberOfIntervals=5095,outputFormat="mat",variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample",simflags=" -alarm=240 -emit_protected -lv LOG_STATS -startTime=0 -stopTime=2 -tolerance=1e-06 -stepSize=0.000392542 -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_me_res.mat -s fmi3:me:daskr",resimulateExecutable="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu") [Timeout 240] "" [Timeout remaining time 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_me_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_me.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample_angle.y,rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed Variables in the result:__zc_0,__zc_1,__zc_2,__zc_3,__zc_4,angle_input.amplitude,angle_input.continuous,angle_input.f,angle_input.offset,angle_input.phase,angle_input.startTime,angle_input.y,previous(rotationalClock.changed.u),rotationalClock.abs1.generateEvent,rotationalClock.abs1.u,rotationalClock.abs1.y,rotationalClock.abs2.generateEvent,rotationalClock.abs2.u,rotationalClock.abs2.y,rotationalClock.angle,rotationalClock.angular_offset.u,rotationalClock.angular_offset.y,rotationalClock.angular_offset.y_start,rotationalClock.cast.u,rotationalClock.cast.y,rotationalClock.changed.u,rotationalClock.changed.y,rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.direction_sign.generateEvent,rotationalClock.direction_sign.u,rotationalClock.direction_sign.y,rotationalClock.less.u1,rotationalClock.less.u2,rotationalClock.less.y,rotationalClock.sub.k1,rotationalClock.sub.k2,rotationalClock.sub.u1,rotationalClock.sub.u2,rotationalClock.sub.y,rotationalClock.trigger_interval,rotationalClock.update_direction.u,rotationalClock.update_direction.y,rotationalClock.update_offset.u,rotationalClock.update_offset.y,rotationalClock.useSolver,rotationalClock.y_clock.useSolver,sample_angle.u,sample_angle.y,time,trigger_interval_input.amplitude,trigger_interval_input.nperiod,trigger_interval_input.offset,trigger_interval_input.period,trigger_interval_input.startTime,trigger_interval_input.width,trigger_interval_input.y simulate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,startTime=0,stopTime=2,tolerance=1e-06,numberOfIntervals=5095,outputFormat="mat",variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample",simflags=" -alarm=240 -emit_protected -lv LOG_STATS -startTime=0 -stopTime=2 -tolerance=1e-06 -stepSize=0.000392542 -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_cs_res.mat -s fmi3:cs",resimulateExecutable="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu") [Timeout 240] "" [Timeout remaining time 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_cs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_cs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 1.3058566559338942]