Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001769/0.001769, allocations: 105.4 kB / 16.92 MB, free: 5.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002141/0.002141, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.335/2.335, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001926, allocations: 43.03 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1205, allocations: 49.45 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.008924/0.1295, allocations: 6.437 MB / 356.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005116/0.1346, allocations: 2.546 MB / 359.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009838/0.1357, allocations: 20 kB / 359.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004587/0.1403, allocations: 1.274 MB / 360.4 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002875/0.1432, allocations: 0.6906 MB / 361.1 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002637/0.1459, allocations: 1.105 MB / 362.2 MB, free: 8.199 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002176/0.1481, allocations: 1.055 MB / 363.3 MB, free: 7.137 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001445/0.1495, allocations: 0.9111 MB / 364.2 MB, free: 6.207 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007839/0.1503, allocations: 442.4 kB / 364.6 MB, free: 5.773 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009207/0.1513, allocations: 0.5484 MB / 365.2 MB, free: 5.223 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001828/0.1515, allocations: 96 kB / 365.3 MB, free: 5.129 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001281/0.1528, allocations: 399.7 kB / 365.7 MB, free: 4.738 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002113/0.153, allocations: 231.2 kB / 365.9 MB, free: 4.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004988/0.1535, allocations: 0.5169 MB / 366.4 MB, free: 3.992 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001835/0.1553, allocations: 1.491 MB / 367.9 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.744e-06/0.1554, allocations: 3.984 kB / 367.9 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1554, allocations: 0 / 367.9 MB, free: 2.492 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.552e-05/0.1554, allocations: 0 / 367.9 MB, free: 2.492 MB / 302.1 MB 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.004825/0.1602, allocations: 1.628 MB / 369.5 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.093e-05/0.1603, allocations: 8.031 kB / 369.5 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003786/0.1607, allocations: 175.4 kB / 369.7 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005815/0.1665, allocations: 483.2 kB / 370.2 MB, free: 148 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2686/0.4352, allocations: 486.6 kB / 370.7 MB, free: 24.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001546/0.4354, allocations: 84.05 kB / 370.7 MB, free: 24.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002879/0.4357, allocations: 110 kB / 370.9 MB, free: 24.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003048/0.4388, allocations: 0.9722 MB / 371.8 MB, free: 24.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.142e-05/0.4388, allocations: 4.531 kB / 371.8 MB, free: 24.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001193/0.439, allocations: 45.72 kB / 371.9 MB, free: 24.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.086e-05/0.439, allocations: 26.84 kB / 371.9 MB, free: 24.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002409/0.4414, allocations: 0.9699 MB / 372.9 MB, free: 24.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006693/0.4481, allocations: 3.702 MB / 376.6 MB, free: 21.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002091/0.4503, allocations: 1.556 MB / 378.1 MB, free: 20.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008893/0.4512, allocations: 428.5 kB / 378.6 MB, free: 20.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001457/0.4514, allocations: 105.2 kB / 378.7 MB, free: 20.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001035/0.4524, allocations: 473.2 kB / 379.1 MB, free: 20.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=96): time 3.517e-06/0.4524, allocations: 0 / 379.1 MB, free: 20.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.01027/0.4627, allocations: 3.99 MB / 383.1 MB, free: 18.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.068e-05/0.4628, allocations: 146.6 kB / 383.2 MB, free: 18.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006006/0.4634, allocations: 397.4 kB / 383.6 MB, free: 17.92 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.404e-05/0.4635, allocations: 47.7 kB / 383.7 MB, free: 17.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003493/0.4639, allocations: 425.3 kB / 384.1 MB, free: 17.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003578/0.4642, allocations: 419.1 kB / 384.5 MB, free: 17.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003473/0.4646, allocations: 204.8 kB / 384.7 MB, free: 17.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.4647, allocations: 379.4 kB / 385.1 MB, free: 16.78 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000773/0.4655, allocations: 355 kB / 385.4 MB, free: 16.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009351/0.4665, allocations: 0.5419 MB / 386 MB, free: 16.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001725/0.4682, allocations: 0.9465 MB / 386.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.4682, allocations: 5.469 kB / 386.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003179/0.4714, allocations: 1.386 MB / 388.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.632e-05/0.4715, allocations: 6.75 kB / 388.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.099e-05/0.4715, allocations: 5.562 kB / 388.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001312/0.4728, allocations: 353.4 kB / 388.7 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.4738, allocations: 207.2 kB / 388.9 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006947/0.4808, allocations: 8.484 MB / 397.3 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009206/0.4818, allocations: 45.61 kB / 397.4 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.914e-05/0.4819, allocations: 47.23 kB / 397.4 MB, free: 7.645 MB / 302.1 MB 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.0005161/0.4824, allocations: 259.1 kB / 397.7 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/0.4825, allocations: 69.53 kB / 397.8 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002554/0.4851, allocations: 1.306 MB / 399.1 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.708e-05/0.4851, allocations: 16.78 kB / 399.1 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/0.4851, allocations: 10.78 kB / 399.1 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.557e-05/0.4852, allocations: 17.52 kB / 399.1 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003778/0.4889, allocations: 2.532 MB / 401.6 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.489, allocations: 3.172 kB / 401.6 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006708/0.4897, allocations: 149.7 kB / 401.8 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007599/0.4904, allocations: 336.3 kB / 402.1 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.314e-05/0.4905, allocations: 24 kB / 402.1 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007144/0.4977, allocations: 8.111 MB / 410.3 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.4977, allocations: 7.969 kB / 410.3 MB, free: 11.94 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003637/0.5014, allocations: 1.823 MB / 412.1 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004904/0.5019, allocations: 224.1 kB / 412.3 MB, free: 9.836 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.502, allocations: 24 kB / 412.3 MB, free: 9.812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005454/0.5026, allocations: 47.98 kB / 412.4 MB, free: 9.766 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002503/0.5028, allocations: 96.8 kB / 412.5 MB, free: 9.672 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.745e-05/0.5029, allocations: 35.98 kB / 412.5 MB, free: 9.637 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003606/0.5033, allocations: 267.2 kB / 412.8 MB, free: 9.375 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5033, allocations: 0 / 412.8 MB, free: 9.375 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00145/0.5047, allocations: 317 kB / 413.1 MB, free: 9.066 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,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.003953/0.5087, allocations: 2.441 MB / 415.5 MB, free: 6.574 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003927/0.5127, allocations: 1.644 MB / 417.2 MB, free: 4.887 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.5127, allocations: 1.062 kB / 417.2 MB, free: 4.887 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00198/0.5147, allocations: 1.149 MB / 418.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007077/0.5154, allocations: 78.48 kB / 418.4 MB, free: 3.613 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01334/0.5287, allocations: 7.519 MB / 425.9 MB, free: 11.85 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007731/0.5296, allocations: 1.021 MB / 426.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005906/0.5302, allocations: 98.17 kB / 427 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004728/0.5307, allocations: 339.3 kB / 427.4 MB, free: 10.37 MB / 334.1 MB Notification: Performance of SimCode: time 1.583e-06/0.5307, allocations: 0 / 427.4 MB, free: 10.37 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05904/0.5897, allocations: 17.9 MB / 445.3 MB, free: 8.625 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.63/16.22, allocations: 1.125 kB / 445.3 MB, free: 8.625 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches