Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.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.0004804/0.0004804, 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.0003986/0.0003986, 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.3355/0.3355, 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.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me_cs",version="3.0",platforms={"wasm"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me_cs",version="3.0",platforms={"wasm"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 1.341e-05/1.539e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.006164/0.006179, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.002382/0.008561, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.0003355/0.008897, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.0004491/0.009346, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.0007254/0.01007, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.0004633/0.01053, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.0005854/0.01112, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.0003166/0.01144, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.0006011/0.01204, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.0003925/0.01243, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 8.356e-05/0.01251, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 7.494e-05/0.01259, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.01271, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0004049/0.01312, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.0008336/0.01395, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 5.401e-05/0.01401, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 3.226e-06/0.01401, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 8.506e-06/0.01402, 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.002283/0.0163, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 7.354e-05/0.01637, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002916/0.01667, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003532/0.01702, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009473/0.01797, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.65e-05/0.01803, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001403/0.01817, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.001667/0.01984, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 2.401e-05/0.01986, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001075/0.01997, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.624e-05/0.01999, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001374/0.02136, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00427/0.02563, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.02669, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.0005905/0.02728, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 4.556e-05/0.02732, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.088e-05/0.02737, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=23): time 5.381e-05/0.02743, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=35): time 0.0114/0.03882, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 7.491e-05/0.0389, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007266/0.03963, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0001389/0.03977, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.03997, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0002195/0.04019, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004738/0.04066, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.0003835/0.04105, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007148/0.04176, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007962/0.04256, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.001605/0.04416, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.597e-06/0.04417, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=45) (initialization): time 0.004004/0.04817, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 3.376e-05/0.04821, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.04822, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 0.003238/0.05146, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004741/0.05193, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01443/0.06636, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000381/0.06674, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/0.06685, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0006842/0.06753, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003573/0.06789, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002721/0.06816, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/0.06817, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.06818, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.456e-05/0.0682, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006034/0.07423, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/0.07424, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003644/0.07461, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 0.003532/0.07814, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/0.07825, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01406/0.09232, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.09232, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004489/0.09681, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.0002983/0.09711, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001871/0.0973, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004146/0.09771, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000573/0.09828, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.763e-05/0.09838, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.0004974/0.09888, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 9.679e-06/0.09889, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.002482/0.1014, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005256/0.1066, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.002407/0.109, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 7.895e-06/0.109, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.001474/0.1105, 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.1125, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01642/0.1289, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004876/0.1294, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.0002145/0.1296, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005485/0.1302, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.0008982/0.1311, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU modelDescription.xml: time 0.003987/0.1351, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU model kernel: time 0.003269/0.1383, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU translated model: time 0.02249/0.1608, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU component link: time 5.671e-06/0.1608, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU precompile: time 1.018e-05/0.1608, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU write (0.1 MB unzipped): time 0.0001493/0.161, 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.FluxTubes.Examples.BasicExamples.SaturatedInductor,startTime=0,stopTime=0.1,tolerance=1e-07,numberOfIntervals=5002,outputFormat="mat",variableFilter="time|coil.i|coil.Phi|r_mLeak.port_p.Phi|r_mFe.mu_r|r_mFe.B|r_mFe.H",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor",simflags=" -alarm=240 -emit_protected -lv LOG_STATS -startTime=0 -stopTime=0.1 -tolerance=1e-07 -stepSize=1.9992e-05 -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat",resimulateExecutable="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor.fmu") [Timeout 240] "" [Timeout remaining time 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches simulate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,startTime=0,stopTime=0.1,tolerance=1e-07,numberOfIntervals=5002,outputFormat="mat",variableFilter="time|coil.i|coil.Phi|r_mLeak.port_p.Phi|r_mFe.mu_r|r_mFe.B|r_mFe.H",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor",simflags=" -alarm=240 -emit_protected -lv LOG_STATS -startTime=0 -stopTime=0.1 -tolerance=1e-07 -stepSize=1.9992e-05 -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_me_res.mat -s fmi3:me:daskr",resimulateExecutable="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor.fmu") [Timeout 240] "" [Timeout remaining time 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_me_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_me.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches simulate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,startTime=0,stopTime=0.1,tolerance=1e-07,numberOfIntervals=5002,outputFormat="mat",variableFilter="time|coil.i|coil.Phi|r_mLeak.port_p.Phi|r_mFe.mu_r|r_mFe.B|r_mFe.H",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor",simflags=" -alarm=240 -emit_protected -lv LOG_STATS -startTime=0 -stopTime=0.1 -tolerance=1e-07 -stepSize=1.9992e-05 -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_cs_res.mat -s fmi3:cs",resimulateExecutable="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor.fmu") [Timeout 240] "" [Timeout remaining time 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_cs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_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.561759709031321]