Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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) 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(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00131/0.001314, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001225/0.001225, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 64.3 kB / 307.1 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07931/0.08049, allocations: 50.54 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005597/0.08613, allocations: 4.356 MB / 362 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002728/0.08888, allocations: 1.66 MB / 363.6 MB, free: 7.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004159/0.08933, allocations: 15.94 kB / 363.6 MB, free: 7.914 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003935/0.08973, allocations: 130.8 kB / 363.8 MB, free: 7.785 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009223/0.09068, allocations: 357.8 kB / 364.1 MB, free: 7.434 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004836/0.09118, allocations: 239.7 kB / 364.3 MB, free: 7.199 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009731/0.09216, allocations: 0.9668 MB / 365.3 MB, free: 6.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003676/0.09254, allocations: 245.4 kB / 365.5 MB, free: 5.988 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000527/0.09308, allocations: 374.7 kB / 365.9 MB, free: 5.621 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004999/0.09359, allocations: 422.3 kB / 366.3 MB, free: 5.207 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001481/0.09375, allocations: 96 kB / 366.4 MB, free: 5.113 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003894/0.09414, allocations: 223.9 kB / 366.6 MB, free: 4.895 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001547/0.09431, allocations: 195.3 kB / 366.8 MB, free: 4.703 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003864/0.0947, allocations: 414.1 kB / 367.2 MB, free: 4.297 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000965/0.09567, allocations: 1.156 MB / 368.4 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.09569, allocations: 4 kB / 368.4 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.09569, allocations: 0 / 368.4 MB, free: 3.133 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.808e-05/0.09572, allocations: 0 / 368.4 MB, free: 3.133 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002357/0.09808, allocations: 1.099 MB / 369.5 MB, free: 1.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.09813, allocations: 11.97 kB / 369.5 MB, free: 1.969 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001101/0.09824, allocations: 102.7 kB / 369.6 MB, free: 1.859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002513/0.0985, allocations: 87.98 kB / 369.7 MB, free: 1.773 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000639/0.09915, allocations: 0.5107 MB / 370.2 MB, free: 1.227 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.925e-05/0.09924, allocations: 71.52 kB / 370.3 MB, free: 1.152 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001862/0.09943, allocations: 76.23 kB / 370.3 MB, free: 1.078 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.1005, allocations: 0.602 MB / 370.9 MB, free: 468 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.1005, allocations: 0 / 370.9 MB, free: 468 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.512e-05/0.1006, allocations: 24 kB / 371 MB, free: 444 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.1006, allocations: 12 kB / 371 MB, free: 432 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1402/0.2408, allocations: 0.5248 MB / 371.5 MB, free: 19.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003303/0.2441, allocations: 2.31 MB / 373.8 MB, free: 19.01 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009665/0.2451, allocations: 484.6 kB / 374.3 MB, free: 18.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005234/0.2456, allocations: 259.9 kB / 374.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.094e-05/0.2457, allocations: 9.328 kB / 374.6 MB, free: 18.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.286e-05/0.2457, allocations: 42.03 kB / 374.6 MB, free: 18.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.355e-06/0.2457, allocations: 0 / 374.6 MB, free: 18.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.01288/0.2586, allocations: 3.54 MB / 378.1 MB, free: 17.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.384e-05/0.2587, allocations: 84.31 kB / 378.2 MB, free: 17.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006696/0.2594, allocations: 0.5456 MB / 378.8 MB, free: 16.87 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.419e-05/0.2594, allocations: 36.2 kB / 378.8 MB, free: 16.83 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001611/0.2596, allocations: 310.2 kB / 379.1 MB, free: 16.58 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.2597, allocations: 210.1 kB / 379.3 MB, free: 16.42 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001833/0.2599, allocations: 111.9 kB / 379.4 MB, free: 16.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.183e-05/0.26, allocations: 373.9 kB / 379.8 MB, free: 16.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005311/0.2605, allocations: 246.7 kB / 380 MB, free: 15.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005796/0.2611, allocations: 350.9 kB / 380.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.2622, allocations: 0.5986 MB / 381 MB, free: 15.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.2622, allocations: 1.062 kB / 381 MB, free: 15.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001466/0.2637, allocations: 0.7369 MB / 381.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.2637, allocations: 6.5 kB / 381.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.2637, allocations: 7.094 kB / 381.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001586/0.2639, allocations: 29.75 kB / 381.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008121/0.2647, allocations: 170.7 kB / 381.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007385/0.2655, allocations: 1.43 MB / 383.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005714/0.2661, allocations: 43 kB / 383.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.68e-05/0.2661, allocations: 23.69 kB / 383.4 MB, free: 13.58 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * 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: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002291/0.2664, allocations: 206.5 kB / 383.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.2665, allocations: 62.2 kB / 383.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00178/0.2683, allocations: 0.8405 MB / 384.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.2683, allocations: 7.219 kB / 384.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.2683, allocations: 6.219 kB / 384.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.2683, allocations: 4.125 kB / 384.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003564/0.2719, allocations: 1.866 MB / 386.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.2719, allocations: 5.469 kB / 386.4 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005395/0.2725, allocations: 106.2 kB / 386.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002381/0.2749, allocations: 470.2 kB / 387 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.318e-05/0.2749, allocations: 13.77 kB / 387 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004454/0.2794, allocations: 3.157 MB / 390.1 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2794, allocations: 1.969 kB / 390.1 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002782/0.2822, allocations: 1.375 MB / 391.5 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002567/0.2825, allocations: 208.1 kB / 391.7 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.246e-05/0.2826, allocations: 15.66 kB / 391.7 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005999/0.2832, allocations: 43.22 kB / 391.8 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/0.2833, allocations: 53.7 kB / 391.8 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.171e-05/0.2834, allocations: 17.12 kB / 391.8 MB, free: 8.668 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004302/0.2838, allocations: 389.3 kB / 392.2 MB, free: 8.438 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.2838, allocations: 0 / 392.2 MB, free: 8.438 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007588/0.2846, allocations: 189.8 kB / 392.4 MB, free: 8.41 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00304/0.2876, allocations: 1.961 MB / 394.4 MB, free: 7.035 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001734/0.2894, allocations: 0.7492 MB / 395.1 MB, free: 6.625 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.2894, allocations: 0 / 395.1 MB, free: 6.625 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000854/0.2903, allocations: 0.5271 MB / 395.6 MB, free: 6.297 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007744/0.291, allocations: 93.14 kB / 395.7 MB, free: 6.246 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007932/0.299, allocations: 6.075 MB / 401.8 MB, free: 1.848 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002784/0.2993, allocations: 0.9037 MB / 402.7 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003381/0.2997, allocations: 84.67 kB / 402.8 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002972/0.3, allocations: 239.3 kB / 403 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3, allocations: 0 / 403 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.037/0.337, allocations: 15.57 MB / 418.6 MB, free: 1.32 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.03, allocations: 4.375 kB / 418.6 MB, free: 1.316 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 0.0001 --interface-type ModelExchange --solver CVode --output-interval 2e-05 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches