Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.0006284/0.0006284, 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.0005602/0.0005602, 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.353/0.353, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] 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(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me_cs",version="3.0",platforms={"wasm"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me_cs",version="3.0",platforms={"wasm"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.805e-06/2.805e-06, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 1.543e-05/1.823e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.01457/0.01459, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.007736/0.02233, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.001066/0.02339, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.005553/0.02895, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.003002/0.03195, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.004566/0.03652, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.001833/0.03835, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.002893/0.04124, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.001864/0.0431, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.001353/0.04446, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0002576/0.04472, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.002345/0.04706, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.0004211/0.04748, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0009867/0.04847, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.004214/0.05268, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.0001846/0.05287, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 3.918e-06/0.05287, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 1.63e-05/0.05289, 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.01527/0.06815, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.0001038/0.06826, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001202/0.06946, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01668/0.08614, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.00313/0.08927, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002136/0.08948, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005777/0.09006, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.007412/0.09747, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 0.0001021/0.09757, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004365/0.09801, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.193e-05/0.09807, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006757/0.1048, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01786/0.1227, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.00487/0.1276, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.002272/0.1298, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 0.0002693/0.1301, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002685/0.1328, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=96): time 0.0001182/0.1329, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=125): time 0.0277/0.1606, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 0.000193/0.1608, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001687/0.1625, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0004283/0.1629, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.0005521/0.1635, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0007912/0.1643, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.001397/0.1657, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.0003812/0.166, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.002404/0.1684, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.002887/0.1713, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.005486/0.1768, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.678e-05/0.1768, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=158) (initialization): time 0.009354/0.1862, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 5.387e-05/0.1863, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.72e-05/0.1863, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 0.003412/0.1897, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001786/0.1915, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02758/0.2191, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001108/0.2202, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003425/0.2205, 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: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,4,100.0%), (1,2,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001788/0.2223, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008098/0.2231, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008961/0.2321, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.093e-05/0.2321, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 4.242e-05/0.2321, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.282e-05/0.2322, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01512/0.2473, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.992e-05/0.2473, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00142/0.2487, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 0.003243/0.252, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003574/0.2523, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02604/0.2784, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.508e-06/0.2784, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01138/0.2898, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.001776/0.2915, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005112/0.292, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009937/0.293, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001457/0.2945, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002971/0.2948, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.001085/0.2959, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 1.975e-05/0.2959, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.004578/0.3005, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (rootMeanSquare.mean.x,coil.i,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,19,100.0%), (1,2,100.0%), (1,4,100.0%), (1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01264/0.3131, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.00748/0.3206, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 8.496e-06/0.3206, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.004526/0.3251, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003504/0.3286, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04005/0.3687, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001599/0.3703, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.001016/0.3713, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002377/0.3737, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.001566/0.3752, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU modelDescription.xml: time 0.01215/0.3874, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU model kernel: time 0.008132/0.3955, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU translated model: time 0.0468/0.4423, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU component link: time 7.885e-06/0.4423, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU precompile: time 1.521e-05/0.4423, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU write (0.2 MB unzipped): time 0.0002211/0.4426, 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.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,startTime=0,stopTime=0.2,tolerance=1e-07,numberOfIntervals=5011,outputFormat="mat",variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor",simflags=" -alarm=240 -emit_protected -lv LOG_STATS -startTime=0 -stopTime=0.2 -tolerance=1e-07 -stepSize=3.99122e-05 -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat",resimulateExecutable="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu") [Timeout 240] "" [Timeout remaining time 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches simulate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,startTime=0,stopTime=0.2,tolerance=1e-07,numberOfIntervals=5011,outputFormat="mat",variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor",simflags=" -alarm=240 -emit_protected -lv LOG_STATS -startTime=0 -stopTime=0.2 -tolerance=1e-07 -stepSize=3.99122e-05 -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_me_res.mat -s fmi3:me:daskr",resimulateExecutable="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu") [Timeout 240] "" [Timeout remaining time 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_me_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_me.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches simulate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,startTime=0,stopTime=0.2,tolerance=1e-07,numberOfIntervals=5011,outputFormat="mat",variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor",simflags=" -alarm=240 -emit_protected -lv LOG_STATS -startTime=0 -stopTime=0.2 -tolerance=1e-07 -stepSize=3.99122e-05 -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_cs_res.mat -s fmi3:cs",resimulateExecutable="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu") [Timeout 240] "" [Timeout remaining time 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_cs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_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.934019764070399]