Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001084/0.001084, allocations: 113.6 kB / 17.78 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001177/0.001177, allocations: 207.9 kB / 18.74 MB, free: 4.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2207/0.2207, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 83.84 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3081/0.3096, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.003049/0.3127, allocations: 1.915 MB / 0.5324 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.3137, allocations: 0.5835 MB / 0.5329 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.144e-05/0.3138, allocations: 5.031 kB / 0.5329 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.526e-05/0.3139, allocations: 13.14 kB / 0.533 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000218/0.3141, allocations: 44.91 kB / 0.533 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002948/0.3144, allocations: 82.64 kB / 0.5331 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001964/0.3146, allocations: 149.5 kB / 0.5332 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.3148, allocations: 36.47 kB / 0.5333 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002194/0.315, allocations: 82.19 kB / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.3151, allocations: 65.64 kB / 0.5334 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.231e-05/0.3152, allocations: 12.09 kB / 0.5334 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.456e-05/0.3152, allocations: 20.5 kB / 0.5334 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.085e-05/0.3153, allocations: 22.67 kB / 0.5334 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.757e-05/0.3154, allocations: 65.53 kB / 0.5335 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002311/0.3156, allocations: 144.2 kB / 0.5336 GB, free: 10.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3156, allocations: 4 kB / 0.5337 GB, free: 10.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3156, allocations: 0 / 0.5337 GB, free: 10.95 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.3156, allocations: 0 / 0.5337 GB, free: 10.95 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007806/0.3164, allocations: 452.7 kB / 0.5341 GB, free: 10.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.3165, allocations: 13.56 kB / 0.5341 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.755e-05/0.3165, allocations: 41.5 kB / 0.5341 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003174/0.3168, allocations: 45.56 kB / 0.5342 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001792/0.317, allocations: 185.9 kB / 0.5344 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.3171, allocations: 7.125 kB / 0.5344 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.738e-05/0.3171, allocations: 9.812 kB / 0.5344 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003212/0.3174, allocations: 152.2 kB / 0.5345 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.3174, allocations: 0 / 0.5345 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.3175, allocations: 1.375 kB / 0.5345 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3175, allocations: 1.375 kB / 0.5345 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000322/0.3178, allocations: 96.05 kB / 0.5346 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007795/0.3186, allocations: 450.5 kB / 0.535 GB, free: 9.629 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002974/0.3189, allocations: 94.02 kB / 0.5351 GB, free: 9.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001407/0.319, allocations: 41.36 kB / 0.5352 GB, free: 9.547 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.3191, allocations: 1.25 kB / 0.5352 GB, free: 9.547 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.001e-05/0.3191, allocations: 35.94 kB / 0.5352 GB, free: 9.504 MB / 398.1 MB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.3191, allocations: 4 kB / 0.5352 GB, free: 9.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=6): time 0.001358/0.3205, allocations: 316.8 kB / 0.5355 GB, free: 9.332 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.901e-05/0.3205, allocations: 104 kB / 0.5356 GB, free: 9.207 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001468/0.3207, allocations: 155.1 kB / 0.5358 GB, free: 9.074 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.3207, allocations: 33.64 kB / 0.5358 GB, free: 9.035 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.203e-05/0.3208, allocations: 110.9 kB / 0.5359 GB, free: 8.926 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.008e-05/0.3208, allocations: 18.02 kB / 0.5359 GB, free: 8.91 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.609e-05/0.3209, allocations: 30.64 kB / 0.5359 GB, free: 8.883 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.321, allocations: 320.3 kB / 0.5362 GB, free: 8.562 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002176/0.3213, allocations: 60.23 kB / 0.5363 GB, free: 8.535 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002287/0.3215, allocations: 94.42 kB / 0.5364 GB, free: 8.465 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003981/0.3219, allocations: 133.7 kB / 0.5365 GB, free: 8.387 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.3219, allocations: 1.375 kB / 0.5365 GB, free: 8.387 MB / 398.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004794/0.3224, allocations: 177.3 kB / 0.5367 GB, free: 8.285 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.3224, allocations: 12.89 kB / 0.5367 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.3224, allocations: 1.125 kB / 0.5367 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.3225, allocations: 1.312 kB / 0.5367 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005751/0.323, allocations: 90.91 kB / 0.5368 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001522/0.3246, allocations: 1.498 MB / 0.5383 GB, free: 6.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002208/0.3248, allocations: 28.28 kB / 0.5383 GB, free: 6.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.3248, allocations: 10.75 kB / 0.5383 GB, free: 6.672 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001181/0.325, allocations: 123.4 kB / 0.5384 GB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.808e-05/0.325, allocations: 13.14 kB / 0.5384 GB, free: 6.539 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005098/0.3255, allocations: 173 kB / 0.5386 GB, free: 6.434 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.3255, allocations: 0.9375 kB / 0.5386 GB, free: 6.434 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.3255, allocations: 1.125 kB / 0.5386 GB, free: 6.434 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3255, allocations: 64 / 0.5386 GB, free: 6.434 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008241/0.3264, allocations: 474.1 kB / 0.539 GB, free: 6.008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3264, allocations: 0 / 0.539 GB, free: 6.008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.3266, allocations: 26.75 kB / 0.5391 GB, free: 6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.3266, allocations: 1.219 kB / 0.5391 GB, free: 6 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.3266, allocations: 0 / 0.5391 GB, free: 6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.389e-06/0.3266, allocations: 5.219 kB / 0.5391 GB, free: 5.996 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3266, allocations: 0 / 0.5391 GB, free: 5.996 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005324/0.3271, allocations: 251.2 kB / 0.5393 GB, free: 5.805 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.506e-05/0.3272, allocations: 83.94 kB / 0.5394 GB, free: 5.707 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.609e-05/0.3272, allocations: 9.297 kB / 0.5394 GB, free: 5.699 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002076/0.3274, allocations: 29.61 kB / 0.5394 GB, free: 5.684 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.13e-05/0.3275, allocations: 7.359 kB / 0.5394 GB, free: 5.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-06/0.3275, allocations: 5.156 kB / 0.5394 GB, free: 5.676 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.822e-05/0.3276, allocations: 117.3 kB / 0.5396 GB, free: 5.582 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3276, allocations: 0 / 0.5396 GB, free: 5.582 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002804/0.3279, allocations: 29.62 kB / 0.5396 GB, free: 5.578 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (7): * Single equations (assignments): 7 * Array equations: 0 * 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 Backend phase and start with SimCode phase: time 0.0007842/0.3287, allocations: 0.7742 MB / 0.5403 GB, free: 4.859 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008603/0.3296, allocations: 177.5 kB / 0.5405 GB, free: 4.785 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3296, allocations: 1.031 kB / 0.5405 GB, free: 4.785 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002283/0.3298, allocations: 65.02 kB / 0.5406 GB, free: 4.758 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003713/0.3302, allocations: 21.17 kB / 0.5406 GB, free: 4.742 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003516/0.3337, allocations: 1.978 MB / 0.5425 GB, free: 3.152 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.334, allocations: 0.704 MB / 0.5432 GB, free: 2.441 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.264e-05/0.3341, allocations: 11.11 kB / 0.5432 GB, free: 2.438 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.862e-05/0.3342, allocations: 34.36 kB / 0.5433 GB, free: 2.41 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3342, allocations: 0 / 0.5433 GB, free: 2.41 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02196/0.3562, allocations: 3.198 MB / 0.5464 GB, free: 0.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/10.88, allocations: 1.125 kB / 0.5464 GB, free: 0.75 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_trunk_ModelicaTest_Electrical_Analog_TestSaturatingInductor.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestSaturatingInductor/TestSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches