Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MagLev_MagLev.Examples.Continuous.CurrentControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.0+maint.om/package.mo): time 0.000524/0.000524, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000525/0.000525, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.4456/0.4456, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.3.0/package.mo): time 0.008176/0.008176, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] Using package MagLev with version 2.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MagLev 2.3.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(MagLev.Examples.Continuous.CurrentControl,fileNamePrefix="MagLev_MagLev_Examples_Continuous_CurrentControl",fmuType="me_cs",version="3.0",platforms={"wasm"}) "" <> buildModelFMU(MagLev.Examples.Continuous.CurrentControl,fileNamePrefix="MagLev_MagLev_Examples_Continuous_CurrentControl",fmuType="me_cs",version="3.0",platforms={"wasm"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 7.52e-07/7.52e-07, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 1.546e-05/1.621e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(MagLev.Examples.Continuous.CurrentControl): time 0.0157/0.01572, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.008778/0.0245, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.00162/0.02612, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.002906/0.02902, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.002348/0.03137, allocations: 0 / 0, free: 0 / 0 [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.00257/0.03394, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.002644/0.03658, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.002253/0.03884, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.002761/0.0416, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.002488/0.04409, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0004128/0.0445, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.00117/0.04567, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.0007154/0.04638, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.001518/0.0479, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.005526/0.05343, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.0003486/0.05378, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 2.004e-06/0.05378, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 3.627e-05/0.05382, 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: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.008652/0.06247, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.0001389/0.06261, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001011/0.06362, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00196/0.06558, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.004476/0.07005, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002211/0.07027, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005178/0.07079, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.006899/0.07769, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 6.77e-05/0.07776, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000365/0.07812, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.892e-05/0.07819, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004772/0.08296, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01657/0.09953, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.002485/0.102, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.001037/0.1031, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 5.717e-05/0.1031, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001612/0.1047, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=41): time 0.0001163/0.1048, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=41): time 0.004005/0.1088, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.109, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004281/0.1132, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0002732/0.1135, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.001032/0.1145, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0003381/0.1149, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008254/0.1157, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.0002796/0.116, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.001423/0.1174, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.001685/0.1191, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.002923/0.122, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-05/0.122, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=79) (initialization): time 0.004721/0.1268, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 4.356e-05/0.1268, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.147e-05/0.1268, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 3.782e-05/0.1269, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001685/0.1285, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.855e-05/0.1286, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009359/0.1295, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001868/0.1297, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002347/0.1321, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00167/0.1337, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002735/0.1365, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.739e-05/0.1365, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.004513/0.141, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 3.938e-05/0.141, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.192e-05/0.1411, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 3.413e-05/0.1411, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001435/0.1425, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.854e-05/0.1426, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009149/0.1435, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001749/0.1436, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition1,coil.hallSensor.globalSeed.seed,coil.hallSensor.uniformNoise.actualGlobalSeed,coil.hallSensor.uniformNoise.localSeed,coil.hallSensor.globalSeed.id_impure,coil.hallSensor.uniformNoise.r_raw,$PRE.coil.hallSensor.uniformNoise.r_raw,coil.hallSensor.uniformNoise.r,$PRE.coil.hallSensor.uniformNoise.r,coil.hallSensor.uniformNoise.state[4],$PRE.coil.hallSensor.uniformNoise.state[4],coil.hallSensor.uniformNoise.state[3],$PRE.coil.hallSensor.uniformNoise.state[3],coil.hallSensor.uniformNoise.state[2],$PRE.coil.hallSensor.uniformNoise.state[2],coil.hallSensor.uniformNoise.state[1],$PRE.coil.hallSensor.uniformNoise.state[1],converter.hBridge.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * Array equations: 1 * 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.0009418/0.1446, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005724/0.1452, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00334/0.1485, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.487e-05/0.1485, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.1485, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.1485, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008582/0.1571, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.686e-06/0.1571, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008596/0.158, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-05/0.158, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001563/0.1582, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-05/0.1582, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.1582, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004372/0.1625, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.001228/0.1638, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005666/0.1643, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008365/0.1652, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004363/0.1656, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001301/0.1657, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.002765/0.1685, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 6.694e-05/0.1686, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.003815/0.1724, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 11 (coil.inductor.i,currentController.x,converter.hBridge.integrator.y,converter.firstOrder.y,adda.sample1.y,adda.hold1.y,adda.sample2.y,e2d.dt1.x,e2d.sample2.y,magnet.d,magnet.d_der) * Number of discrete variables: 7 ($whenCondition1,coil.hallSensor.uniformNoise.state[1],coil.hallSensor.uniformNoise.state[2],coil.hallSensor.uniformNoise.state[3],coil.hallSensor.uniformNoise.state[4],coil.hallSensor.uniformNoise.r,coil.hallSensor.uniformNoise.r_raw) * Number of discrete states: 4 (coil.hallSensor.uniformNoise.state[1],coil.hallSensor.uniformNoise.state[2],coil.hallSensor.uniformNoise.state[3],coil.hallSensor.uniformNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * 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.006972/0.1794, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.004722/0.1841, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 1.238e-05/0.1841, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.001157/0.1853, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003783/0.189, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04105/0.2301, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001476/0.2316, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.001201/0.2328, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002852/0.2356, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.0008958/0.2365, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU modelDescription.xml: time 0.01654/0.253, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU model kernel: time 0.006306/0.2594, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU translated model: time 0.04238/0.3017, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU component link: time 8.055e-06/0.3017, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU precompile: time 4.348e-06/0.3017, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU write (0.2 MB unzipped): time 0.0005224/0.3023, 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(MagLev.Examples.Continuous.CurrentControl,startTime=0,stopTime=0.1,tolerance=1e-06,numberOfIntervals=2000,outputFormat="empty",variableFilter="",fileNamePrefix="MagLev_MagLev.Examples.Continuous.CurrentControl",simflags=" -alarm=480 -lv LOG_STATS -startTime=0 -stopTime=0.1 -tolerance=1e-06 -stepSize=5e-05 -noemit",resimulateExecutable="MagLev_MagLev_Examples_Continuous_CurrentControl.fmu") [Timeout 480] "" [Timeout remaining time 480] simulate(MagLev.Examples.Continuous.CurrentControl,startTime=0,stopTime=0.1,tolerance=1e-06,numberOfIntervals=2000,outputFormat="empty",variableFilter="",fileNamePrefix="MagLev_MagLev.Examples.Continuous.CurrentControl",simflags=" -alarm=480 -lv LOG_STATS -startTime=0 -stopTime=0.1 -tolerance=1e-06 -stepSize=5e-05 -noemit -s fmi3:me:daskr",resimulateExecutable="MagLev_MagLev_Examples_Continuous_CurrentControl.fmu") [Timeout 480] "" [Timeout remaining time 480] simulate(MagLev.Examples.Continuous.CurrentControl,startTime=0,stopTime=0.1,tolerance=1e-06,numberOfIntervals=2000,outputFormat="empty",variableFilter="",fileNamePrefix="MagLev_MagLev.Examples.Continuous.CurrentControl",simflags=" -alarm=480 -lv LOG_STATS -startTime=0 -stopTime=0.1 -tolerance=1e-06 -stepSize=5e-05 -noemit -s fmi3:cs",resimulateExecutable="MagLev_MagLev_Examples_Continuous_CurrentControl.fmu") [Timeout 480] "" [Timeout remaining time 480] [Calling sys.exit(0), Time elapsed: 1.8267756820423529]