Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.001287/0.001287, allocations: 102.1 kB / 21.96 MB, free: 5.219 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.001337/0.001337, allocations: 214.5 kB / 25.26 MB, free: 3.129 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.342/1.342, allocations: 207.7 MB / 236.1 MB, free: 9.801 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.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="cs",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.001723/0.001723, allocations: 51.92 kB / 348 MB, free: 9.887 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2609, allocations: 49.16 MB / 397.1 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.004145/0.2651, allocations: 3.09 MB / 400.2 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001921/0.267, allocations: 1.372 MB / 401.6 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000162/0.2671, allocations: 4.688 kB / 401.6 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003238/0.2704, allocations: 2.664 MB / 404.3 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004468/0.2708, allocations: 178.5 kB / 404.4 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006874/0.2715, allocations: 285.7 kB / 404.7 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002032/0.2735, allocations: 1.8 MB / 406.5 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001993/0.2737, allocations: 103.3 kB / 406.6 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003774/0.2741, allocations: 313.9 kB / 406.9 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003521/0.2745, allocations: 359.3 kB / 407.3 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.737e-05/0.2746, allocations: 43 kB / 407.3 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001673/0.2747, allocations: 73.23 kB / 407.4 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004979/0.2752, allocations: 0.8447 MB / 408.2 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004306/0.2757, allocations: 0.6615 MB / 408.9 MB, free: 3.582 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00174/0.2774, allocations: 2.654 MB / 411.5 MB, free: 1.773 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2774, allocations: 0 / 411.5 MB, free: 1.773 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2774, allocations: 0 / 411.5 MB, free: 1.773 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.388e-05/0.2774, allocations: 3.938 kB / 411.6 MB, free: 1.77 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.003448/0.2809, allocations: 2.817 MB / 414.4 MB, free: 15.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.2809, allocations: 13.86 kB / 414.4 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.257e-05/0.281, allocations: 9.656 kB / 414.4 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.79e-05/0.281, allocations: 74.94 kB / 414.5 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004858/0.2815, allocations: 297.7 kB / 414.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002864/0.2844, allocations: 1.783 MB / 416.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001304/0.2845, allocations: 121 kB / 416.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000203/0.2847, allocations: 56.78 kB / 416.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008687/0.2856, allocations: 443.9 kB / 417.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.2856, allocations: 1.406 kB / 417.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.94e-05/0.2857, allocations: 15.03 kB / 417.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.525e-05/0.2857, allocations: 12.58 kB / 417.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007312/0.2864, allocations: 331.7 kB / 417.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00477/0.2912, allocations: 2.628 MB / 420.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006489/0.2918, allocations: 297 kB / 420.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003099/0.2921, allocations: 153.7 kB / 420.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.647e-05/0.2922, allocations: 4 kB / 420.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.549e-05/0.2922, allocations: 38.56 kB / 420.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.916e-06/0.2922, allocations: 0 / 420.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=48): time 0.004928/0.2971, allocations: 2.368 MB / 423 MB, free: 8.949 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.088e-05/0.2972, allocations: 81.55 kB / 423.1 MB, free: 8.848 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006911/0.3041, allocations: 5.435 MB / 428.5 MB, free: 3.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.11e-05/0.3042, allocations: 37.7 kB / 428.5 MB, free: 3.367 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001166/0.3054, allocations: 1.207 MB / 429.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001562/0.3055, allocations: 186.4 kB / 429.9 MB, free: 1.969 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001494/0.3057, allocations: 86.14 kB / 430 MB, free: 1.879 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.3058, allocations: 329.9 kB / 430.3 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003374/0.3061, allocations: 136.9 kB / 430.5 MB, free: 1.418 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003887/0.3065, allocations: 225 kB / 430.7 MB, free: 1.172 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007242/0.3073, allocations: 388.3 kB / 431.1 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3073, allocations: 0 / 431.1 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001245/0.3085, allocations: 0.6935 MB / 431.8 MB, free: 64 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.3085, allocations: 8 kB / 431.8 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.3085, allocations: 0 / 431.8 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.3085, allocations: 4 kB / 431.8 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005282/0.3091, allocations: 127.8 kB / 431.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.3091, allocations: 4 kB / 431.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004158/0.3095, allocations: 12 kB / 431.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.586e-05/0.3095, allocations: 27.92 kB / 431.9 MB, free: 15.88 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * 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 prepare postOptimizeDAE: time 0.001149/0.3107, allocations: 0.9193 MB / 432.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003451/0.311, allocations: 282.1 kB / 433.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001442/0.3125, allocations: 0.7708 MB / 433.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.3125, allocations: 4 kB / 433.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3125, allocations: 0 / 433.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.3125, allocations: 3.984 kB / 433.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001674/0.3142, allocations: 1.25 MB / 435.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.3142, allocations: 3.938 kB / 435.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004475/0.3146, allocations: 95.88 kB / 435.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003224/0.3149, allocations: 76.81 kB / 435.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.03e-05/0.315, allocations: 11.98 kB / 435.3 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006223/0.3156, allocations: 0.6421 MB / 436 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.3156, allocations: 4 kB / 436 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001695/0.3173, allocations: 1.071 MB / 437.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007447/0.318, allocations: 430 kB / 437.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001716/0.3182, allocations: 11.98 kB / 437.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004549/0.3187, allocations: 20.06 kB / 437.5 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.594e-05/0.3187, allocations: 32.36 kB / 437.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.13e-05/0.3188, allocations: 19.98 kB / 437.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.005206/0.324, allocations: 3.97 MB / 441.5 MB, free: 6.176 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.324, allocations: 0 / 441.5 MB, free: 6.176 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00103/0.325, allocations: 211.9 kB / 441.7 MB, free: 5.969 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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 {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003624/0.3286, allocations: 1.953 MB / 443.7 MB, free: 3.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000825/0.3295, allocations: 360.9 kB / 444 MB, free: 3.629 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3295, allocations: 0 / 444 MB, free: 3.629 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004417/0.3299, allocations: 206.9 kB / 444.2 MB, free: 3.426 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001327/0.3312, allocations: 203 kB / 444.4 MB, free: 3.223 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04121/0.3724, allocations: 19.35 MB / 463.8 MB, free: 15.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001532/0.374, allocations: 1.237 MB / 465 MB, free: 14.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008158/0.3748, allocations: 271.6 kB / 465.3 MB, free: 14.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001294/0.3761, allocations: 0.9327 MB / 466.2 MB, free: 13.21 MB / 382.1 MB Notification: Performance of SimCode: time 1.804e-06/0.3761, allocations: 0 / 466.2 MB, free: 13.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08048/0.4566, allocations: 39.42 MB / 0.4938 GB, free: 5.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.55/18.01, allocations: 8.047 kB / 0.4938 GB, free: 5.582 MB / 414.1 MB " [Timeout remaining time 642] (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --stepSize=4e-06 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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: 20.698248872999102]