Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001572/0.001572, allocations: 119.9 kB / 17.79 MB, free: 5.137 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001533/0.001533, allocations: 185.2 kB / 20.73 MB, free: 2.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 225.6 MB / 249.1 MB, free: 3.59 MB / 190.1 MB " [Timeout remaining time 178] 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.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 55.91 kB / 365.6 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1018, allocations: 52.14 MB / 417.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.00581/0.1077, allocations: 4.386 MB / 422.2 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002735/0.1104, allocations: 1.594 MB / 423.8 MB, free: 6.578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002812/0.1107, allocations: 11.94 kB / 423.8 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003441/0.111, allocations: 114.9 kB / 423.9 MB, free: 6.453 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007801/0.1118, allocations: 377.5 kB / 424.3 MB, free: 6.082 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004342/0.1122, allocations: 231.7 kB / 424.5 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001016/0.1132, allocations: 0.9784 MB / 425.5 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002874/0.1135, allocations: 161.5 kB / 425.6 MB, free: 4.707 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004772/0.114, allocations: 378.7 kB / 426 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005208/0.1145, allocations: 426.3 kB / 426.4 MB, free: 3.918 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001258/0.1147, allocations: 96 kB / 426.5 MB, free: 3.824 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003517/0.115, allocations: 215.9 kB / 426.7 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001734/0.1152, allocations: 199.3 kB / 426.9 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003875/0.1156, allocations: 414.1 kB / 427.3 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001186/0.1168, allocations: 1.167 MB / 428.5 MB, free: 1.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1168, allocations: 0 / 428.5 MB, free: 1.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1168, allocations: 0 / 428.5 MB, free: 1.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.839e-06/0.1168, allocations: 0 / 428.5 MB, free: 1.84 MB / 350.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.002346/0.1191, allocations: 1.114 MB / 429.6 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.1192, allocations: 15.89 kB / 429.6 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001152/0.1193, allocations: 98.69 kB / 429.7 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001498/0.1194, allocations: 88.42 kB / 429.8 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008141/0.1202, allocations: 0.5227 MB / 430.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.063e-05/0.1203, allocations: 71.58 kB / 430.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000202/0.1205, allocations: 68.3 kB / 430.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001072/0.1216, allocations: 0.6097 MB / 431.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.1216, allocations: 0 / 431.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001158/0.1217, allocations: 20 kB / 431.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/0.1218, allocations: 12 kB / 431.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001117/0.1229, allocations: 0.5282 MB / 431.6 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003471/0.1263, allocations: 2.291 MB / 433.9 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009836/0.1273, allocations: 470 kB / 434.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000531/0.1279, allocations: 246 kB / 434.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.092e-05/0.1279, allocations: 8 kB / 434.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.008e-05/0.1279, allocations: 42.5 kB / 434.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=45): time 1.914e-06/0.1279, allocations: 0 / 434.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.0125/0.1404, allocations: 3.555 MB / 438.2 MB, free: 7.746 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.873e-05/0.1405, allocations: 85.67 kB / 438.3 MB, free: 7.645 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007227/0.1412, allocations: 0.5332 MB / 438.8 MB, free: 7.102 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.431e-05/0.1413, allocations: 37.7 kB / 438.9 MB, free: 7.059 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002428/0.1415, allocations: 320.8 kB / 439.2 MB, free: 6.742 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001964/0.1417, allocations: 222.1 kB / 439.4 MB, free: 6.523 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002025/0.1419, allocations: 114.3 kB / 439.5 MB, free: 6.406 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.1421, allocations: 366.8 kB / 439.9 MB, free: 6.039 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005513/0.1427, allocations: 245.2 kB / 440.1 MB, free: 5.797 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006138/0.1433, allocations: 352.4 kB / 440.4 MB, free: 5.422 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/0.1444, allocations: 0.5942 MB / 441 MB, free: 4.793 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1444, allocations: 4 kB / 441 MB, free: 4.789 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001503/0.1459, allocations: 0.7452 MB / 441.8 MB, free: 4.031 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.146, allocations: 4.312 kB / 441.8 MB, free: 4.027 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.146, allocations: 11.94 kB / 441.8 MB, free: 4.016 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001507/0.1461, allocations: 28.84 kB / 441.8 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007749/0.1469, allocations: 167.8 kB / 442 MB, free: 3.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001209/0.1481, allocations: 1.43 MB / 443.4 MB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005267/0.1486, allocations: 44.03 kB / 443.5 MB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.753e-05/0.1487, allocations: 23.98 kB / 443.5 MB, free: 2.18 MB / 366.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.0002846/0.149, allocations: 197.7 kB / 443.7 MB, free: 1.977 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.1491, allocations: 63.58 kB / 443.8 MB, free: 1.914 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001803/0.1509, allocations: 0.8335 MB / 444.6 MB, free: 1.074 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.1509, allocations: 11.94 kB / 444.6 MB, free: 1.062 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1509, allocations: 4 kB / 444.6 MB, free: 1.059 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.1509, allocations: 3.984 kB / 444.6 MB, free: 1.055 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1808/0.3317, allocations: 1.84 MB / 446.4 MB, free: 29.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.3317, allocations: 0 / 446.4 MB, free: 29.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004944/0.3322, allocations: 106.1 kB / 446.5 MB, free: 29.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002109/0.3343, allocations: 476.5 kB / 447 MB, free: 29.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.03e-05/0.3343, allocations: 20.66 kB / 447 MB, free: 29.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004105/0.3384, allocations: 3.144 MB / 450.2 MB, free: 28.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3384, allocations: 4.984 kB / 450.2 MB, free: 28.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002582/0.341, allocations: 1.359 MB / 451.5 MB, free: 28.28 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002665/0.3413, allocations: 213 kB / 451.7 MB, free: 28.19 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.064e-05/0.3414, allocations: 14.19 kB / 451.8 MB, free: 28.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005521/0.3419, allocations: 41.17 kB / 451.8 MB, free: 28.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.3421, allocations: 51.72 kB / 451.9 MB, free: 28.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-05/0.3421, allocations: 23.64 kB / 451.9 MB, free: 28.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004296/0.3425, allocations: 390 kB / 452.3 MB, free: 28 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3425, allocations: 0 / 452.3 MB, free: 28 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006557/0.3432, allocations: 184.5 kB / 452.4 MB, free: 27.98 MB / 366.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.003053/0.3462, allocations: 1.956 MB / 454.4 MB, free: 26.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.3477, allocations: 0.7174 MB / 455.1 MB, free: 26.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3477, allocations: 1.25 kB / 455.1 MB, free: 26.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008135/0.3485, allocations: 0.4953 MB / 455.6 MB, free: 26.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006263/0.3492, allocations: 96.23 kB / 455.7 MB, free: 26.19 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007853/0.357, allocations: 5.929 MB / 461.6 MB, free: 22.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003436/0.3573, allocations: 0.8997 MB / 462.5 MB, free: 22.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003297/0.3577, allocations: 72.25 kB / 462.6 MB, free: 22.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003096/0.358, allocations: 248.1 kB / 462.8 MB, free: 21.97 MB / 366.1 MB Notification: Performance of SimCode: time 7.12e-07/0.358, allocations: 0 / 462.8 MB, free: 21.97 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04739/0.4054, allocations: 15.85 MB / 478.7 MB, free: 16.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.42, allocations: 11.75 kB / 478.7 MB, free: 16.31 MB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --stepSize=2e-05 --timeout=50 --tolerance=0.0001 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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: 16.079532103147358]