Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008181/0.0008182, allocations: 85.72 kB / 16.31 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008256/0.0008258, allocations: 179.3 kB / 17.21 MB, free: 6.328 MB / 14.72 MB 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: 223.2 MB / 241.2 MB, free: 352 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003362/0.0003362, allocations: 7.984 kB / 300.9 MB, free: 6.359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1012, allocations: 50.42 MB / 351.3 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.003442/0.1048, allocations: 2.909 MB / 354.3 MB, free: 1 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002197/0.107, allocations: 1.361 MB / 355.6 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002182/0.1072, allocations: 8 kB / 355.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002004/0.1093, allocations: 1.715 MB / 357.3 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004034/0.1097, allocations: 143.1 kB / 357.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006555/0.1103, allocations: 250.8 kB / 357.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001464/0.1118, allocations: 1.395 MB / 359.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002156/0.1121, allocations: 102.7 kB / 359.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003653/0.1124, allocations: 283.2 kB / 359.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000344/0.1128, allocations: 310.9 kB / 359.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.724e-05/0.1129, allocations: 24 kB / 359.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001649/0.113, allocations: 55.98 kB / 359.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006019/0.1136, allocations: 0.8298 MB / 360.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002703/0.1139, allocations: 380.3 kB / 361.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001591/0.1155, allocations: 2.101 MB / 363.2 MB, free: 8.039 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1155, allocations: 0 / 363.2 MB, free: 8.039 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1155, allocations: 0 / 363.2 MB, free: 8.039 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.394e-05/0.1156, allocations: 4 kB / 363.2 MB, free: 8.035 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.003332/0.1189, allocations: 2.434 MB / 365.6 MB, free: 5.539 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.119, allocations: 12.03 kB / 365.6 MB, free: 5.527 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001031/0.1191, allocations: 78.52 kB / 365.7 MB, free: 5.441 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003247/0.1194, allocations: 284.3 kB / 366 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002209/0.1216, allocations: 1.681 MB / 367.7 MB, free: 3.422 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.336e-05/0.1217, allocations: 66.62 kB / 367.7 MB, free: 3.352 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001573/0.1219, allocations: 44 kB / 367.8 MB, free: 3.309 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006863/0.1226, allocations: 391 kB / 368.2 MB, free: 2.914 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.1226, allocations: 3.906 kB / 368.2 MB, free: 2.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.877e-05/0.1227, allocations: 19.95 kB / 368.2 MB, free: 2.891 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.1227, allocations: 8 kB / 368.2 MB, free: 2.883 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006592/0.1233, allocations: 339.7 kB / 368.5 MB, free: 2.547 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1906/0.314, allocations: 2.905 MB / 371.4 MB, free: 22.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007918/0.3148, allocations: 320.1 kB / 371.7 MB, free: 22.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003324/0.3152, allocations: 168.8 kB / 371.9 MB, free: 22.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.002e-05/0.3152, allocations: 3.875 kB / 371.9 MB, free: 22.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.351e-05/0.3152, allocations: 38.88 kB / 371.9 MB, free: 22.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.375e-06/0.3152, allocations: 0.5938 kB / 371.9 MB, free: 22.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.005291/0.3205, allocations: 2.413 MB / 374.4 MB, free: 21.6 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.3206, allocations: 83.55 kB / 374.4 MB, free: 21.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007447/0.3281, allocations: 5.441 MB / 379.9 MB, free: 20.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.556e-05/0.3282, allocations: 36.36 kB / 379.9 MB, free: 20.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009942/0.3292, allocations: 1.209 MB / 381.1 MB, free: 19.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001442/0.3293, allocations: 169.2 kB / 381.3 MB, free: 18.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.329e-05/0.3293, allocations: 5.812 kB / 381.3 MB, free: 18.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.087e-05/0.3294, allocations: 329.8 kB / 381.6 MB, free: 18.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003353/0.3298, allocations: 134.3 kB / 381.7 MB, free: 18.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003623/0.3301, allocations: 226.8 kB / 382 MB, free: 18.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003476/0.3305, allocations: 169.9 kB / 382.1 MB, free: 18.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3305, allocations: 1.062 kB / 382.1 MB, free: 18.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001441/0.3319, allocations: 0.6834 MB / 382.8 MB, free: 18.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.332, allocations: 6.062 kB / 382.8 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.966e-06/0.332, allocations: 2.281 kB / 382.8 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.332, allocations: 5.625 kB / 382.8 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004992/0.3325, allocations: 125.9 kB / 383 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.3325, allocations: 7.891 kB / 383 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005676/0.3331, allocations: 17.53 kB / 383 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.41e-05/0.3332, allocations: 18.59 kB / 383 MB, free: 18.06 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001324/0.3345, allocations: 0.9205 MB / 383.9 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003572/0.3349, allocations: 270.3 kB / 384.2 MB, free: 17.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001521/0.3364, allocations: 0.8002 MB / 385 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.3364, allocations: 5.5 kB / 385 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.3364, allocations: 1.422 kB / 385 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.3364, allocations: 7.5 kB / 385 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002131/0.3386, allocations: 1.471 MB / 386.5 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.3386, allocations: 5.156 kB / 386.5 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004411/0.339, allocations: 94.28 kB / 386.6 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003451/0.3394, allocations: 88.22 kB / 386.6 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.385e-05/0.3394, allocations: 13.81 kB / 386.7 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004392/0.3399, allocations: 0.6414 MB / 387.3 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3399, allocations: 0 / 387.3 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.3416, allocations: 1.081 MB / 388.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006967/0.3423, allocations: 498 kB / 388.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001899/0.3425, allocations: 6.75 kB / 388.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004373/0.3429, allocations: 22.75 kB / 388.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.299e-05/0.343, allocations: 29.86 kB / 388.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.857e-05/0.343, allocations: 15.59 kB / 388.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.004978/0.348, allocations: 3.989 MB / 392.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.348, allocations: 3.719 kB / 392.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009193/0.349, allocations: 213.3 kB / 393.1 MB, free: 13.25 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.002398/0.3514, allocations: 1.925 MB / 395.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000745/0.3521, allocations: 384.9 kB / 395.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3522, allocations: 0 / 395.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003885/0.3526, allocations: 214.9 kB / 395.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001095/0.3537, allocations: 179.3 kB / 395.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05089/0.4046, allocations: 20.4 MB / 416.2 MB, free: 4.98 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002195/0.4068, allocations: 1.815 MB / 418 MB, free: 3.129 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008405/0.4077, allocations: 279.6 kB / 418.3 MB, free: 2.852 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0014/0.4091, allocations: 0.9288 MB / 419.2 MB, free: 1.922 MB / 318.1 MB Notification: Performance of SimCode: time 1.453e-06/0.4091, allocations: 0 / 419.2 MB, free: 1.922 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07721/0.4863, allocations: 39.64 MB / 458.9 MB, free: 10.62 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003122/0.4867, allocations: 298.4 kB / 459.2 MB, free: 10.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.968/3.455, allocations: 2.406 kB / 459.2 MB, free: 10.27 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat does not exist to compare? outputFormat=mat