Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 112.4 kB / 21.19 MB, free: 0.7031 MB / 14.72 MB " [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.001427/0.001427, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.5/1.5, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001786/0.001786, allocations: 55.92 kB / 347.2 MB, free: 10.12 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3126, allocations: 49.16 MB / 396.3 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005055/0.3176, allocations: 4.334 MB / 400.7 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003023/0.3207, allocations: 1.658 MB / 402.3 MB, free: 4.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005885/0.3213, allocations: 10.78 kB / 402.4 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004646/0.3217, allocations: 129 kB / 402.5 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001161/0.3229, allocations: 367.7 kB / 402.8 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006764/0.3236, allocations: 227.6 kB / 403.1 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0013/0.3249, allocations: 0.9793 MB / 404 MB, free: 3.754 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003339/0.3252, allocations: 160.4 kB / 404.2 MB, free: 3.664 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006476/0.3258, allocations: 395.4 kB / 404.6 MB, free: 3.469 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006508/0.3265, allocations: 423.5 kB / 405 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001649/0.3266, allocations: 96.22 kB / 405.1 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005039/0.3272, allocations: 220 kB / 405.3 MB, free: 3.227 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001652/0.3273, allocations: 192.4 kB / 405.5 MB, free: 3.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004035/0.3277, allocations: 421.4 kB / 405.9 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001632/0.3294, allocations: 1.172 MB / 407.1 MB, free: 2.379 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3294, allocations: 0.5625 kB / 407.1 MB, free: 2.379 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3294, allocations: 4 kB / 407.1 MB, free: 2.375 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.679e-05/0.3294, allocations: 0 / 407.1 MB, free: 2.375 MB / 318.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.002719/0.3321, allocations: 1.036 MB / 408.1 MB, free: 1.719 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/0.3322, allocations: 13.78 kB / 408.1 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000142/0.3323, allocations: 101.5 kB / 408.2 MB, free: 1.637 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001801/0.3325, allocations: 80.12 kB / 408.3 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008418/0.3333, allocations: 474.2 kB / 408.8 MB, free: 1.254 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001124/0.3334, allocations: 127.4 kB / 408.9 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001984/0.3336, allocations: 68.91 kB / 409 MB, free: 1.117 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/0.3348, allocations: 0.6069 MB / 409.6 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.3348, allocations: 1.375 kB / 409.6 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.286e-05/0.3349, allocations: 25.5 kB / 409.6 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.3349, allocations: 12.98 kB / 409.6 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.336, allocations: 0.5256 MB / 410.1 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003727/0.3397, allocations: 2.243 MB / 412.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.3407, allocations: 454.9 kB / 412.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005562/0.3413, allocations: 246.7 kB / 413.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.653e-05/0.3413, allocations: 4.625 kB / 413.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.59e-05/0.3414, allocations: 45.89 kB / 413.1 MB, free: 14.28 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.305e-06/0.3414, allocations: 0 / 413.1 MB, free: 14.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.01361/0.355, allocations: 3.322 MB / 416.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.288e-05/0.355, allocations: 83.36 kB / 416.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008926/0.3559, allocations: 0.543 MB / 417.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.828e-05/0.356, allocations: 37.42 kB / 417.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002533/0.3563, allocations: 314.1 kB / 417.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002197/0.3565, allocations: 222.5 kB / 417.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002122/0.3567, allocations: 112.7 kB / 417.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.3569, allocations: 372 kB / 418.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000594/0.3575, allocations: 243.7 kB / 418.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000668/0.3581, allocations: 352.2 kB / 418.7 MB, free: 10.85 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001193/0.3593, allocations: 0.6048 MB / 419.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.3593, allocations: 1.375 kB / 419.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001754/0.3611, allocations: 0.7453 MB / 420 MB, free: 10.08 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.3611, allocations: 6.062 kB / 420 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.3611, allocations: 1.344 kB / 420 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001907/0.3613, allocations: 33.3 kB / 420.1 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008094/0.3621, allocations: 167.3 kB / 420.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001209/0.3633, allocations: 1.327 MB / 421.6 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006798/0.364, allocations: 43.64 kB / 421.6 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.315e-05/0.3641, allocations: 28.3 kB / 421.6 MB, free: 8.629 MB / 334.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.000353/0.3644, allocations: 203.1 kB / 421.8 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001463/0.3646, allocations: 64.12 kB / 421.9 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001859/0.3664, allocations: 0.8373 MB / 422.7 MB, free: 7.922 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.3664, allocations: 10.75 kB / 422.7 MB, free: 7.918 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3664, allocations: 5.188 kB / 422.7 MB, free: 7.914 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/0.3664, allocations: 5.141 kB / 422.7 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003866/0.3703, allocations: 1.815 MB / 424.6 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.704e-06/0.3703, allocations: 4 kB / 424.6 MB, free: 6.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005185/0.3708, allocations: 103.9 kB / 424.7 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002275/0.3731, allocations: 469.8 kB / 425.1 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.524e-05/0.3732, allocations: 15.98 kB / 425.1 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005195/0.3784, allocations: 3.059 MB / 428.2 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3784, allocations: 0 / 428.2 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003106/0.3815, allocations: 1.374 MB / 429.6 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004029/0.3819, allocations: 139.5 kB / 429.7 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.769e-05/0.382, allocations: 12 kB / 429.7 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005934/0.3826, allocations: 47.97 kB / 429.8 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.3827, allocations: 48.55 kB / 429.8 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.421e-05/0.3828, allocations: 20 kB / 429.8 MB, free: 1.098 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005408/0.3833, allocations: 390.9 kB / 430.2 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3833, allocations: 0 / 430.2 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008521/0.3842, allocations: 183.9 kB / 430.4 MB, free: 0.5391 MB / 334.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.003593/0.3877, allocations: 1.953 MB / 432.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001598/0.3893, allocations: 0.7032 MB / 433 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3893, allocations: 0 / 433 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009952/0.3903, allocations: 0.4988 MB / 433.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008985/0.3912, allocations: 101.7 kB / 433.6 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/0.4014, allocations: 5.929 MB / 439.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005946/0.402, allocations: 0.9041 MB / 440.5 MB, free: 6.199 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003717/0.4024, allocations: 68.81 kB / 440.5 MB, free: 6.129 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000389/0.4028, allocations: 239.3 kB / 440.8 MB, free: 5.895 MB / 350.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4028, allocations: 0 / 440.8 MB, free: 5.895 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05651/0.4593, allocations: 16.32 MB / 457.1 MB, free: 5.504 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.89/14.35, allocations: 0 / 457.1 MB, free: 5.504 MB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable transformer.core.Hstat in file Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv. Warning: Get data of variable transformer.core.Hstat from file Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.206834294003784]