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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007547/0.0007547, allocations: 88.16 kB / 16.31 MB, free: 5.562 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.0007985/0.0007986, allocations: 179.7 kB / 17.21 MB, free: 5.48 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.321/1.321, allocations: 223.2 MB / 241.2 MB, free: 328 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002761/0.0002762, allocations: 8 kB / 300.9 MB, free: 6.336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1026, allocations: 50.42 MB / 351.3 MB, free: 3.906 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.004011/0.1067, allocations: 3.768 MB / 355.1 MB, free: 120 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002589/0.1093, allocations: 1.501 MB / 356.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003246/0.1097, allocations: 11.94 kB / 356.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002972/0.11, allocations: 91.3 kB / 356.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006651/0.1107, allocations: 290.2 kB / 357 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003513/0.111, allocations: 151.8 kB / 357.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007824/0.1118, allocations: 0.869 MB / 358 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002718/0.1121, allocations: 174.1 kB / 358.2 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003389/0.1124, allocations: 302.8 kB / 358.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003907/0.1128, allocations: 358.5 kB / 358.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.68e-05/0.1129, allocations: 51.98 kB / 358.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003107/0.1132, allocations: 155.9 kB / 359 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001136/0.1134, allocations: 135.4 kB / 359.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.1135, allocations: 157.3 kB / 359.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007162/0.1142, allocations: 0.8883 MB / 360.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.1142, allocations: 4 kB / 360.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1142, allocations: 0 / 360.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.1143, allocations: 0 / 360.2 MB, free: 10.99 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.001941/0.1162, allocations: 0.9857 MB / 361.2 MB, free: 9.953 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.1163, allocations: 8.031 kB / 361.2 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001203/0.1164, allocations: 102.5 kB / 361.3 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001183/0.1165, allocations: 71.16 kB / 361.4 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006483/0.1172, allocations: 0.494 MB / 361.9 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.937e-05/0.1173, allocations: 79 kB / 361.9 MB, free: 9.145 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001659/0.1174, allocations: 60 kB / 362 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.1185, allocations: 0.6097 MB / 362.6 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.1185, allocations: 8 kB / 362.6 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.193e-05/0.1186, allocations: 24 kB / 362.6 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.457e-05/0.1186, allocations: 12 kB / 362.7 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/0.1196, allocations: 0.5399 MB / 363.2 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003156/0.1228, allocations: 2.33 MB / 365.5 MB, free: 5.434 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009023/0.1237, allocations: 497.5 kB / 366 MB, free: 4.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004914/0.1242, allocations: 278 kB / 366.3 MB, free: 4.652 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.261e-05/0.1243, allocations: 8.219 kB / 366.3 MB, free: 4.645 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.863e-05/0.1243, allocations: 38.56 kB / 366.3 MB, free: 4.598 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.384e-06/0.1243, allocations: 0 / 366.3 MB, free: 4.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.01146/0.1358, allocations: 3.683 MB / 370 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.659e-05/0.1359, allocations: 89.67 kB / 370.1 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000665/0.1366, allocations: 0.5292 MB / 370.6 MB, free: 184 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.571e-05/0.1366, allocations: 41.7 kB / 370.7 MB, free: 136 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1932/0.3298, allocations: 305.2 kB / 371 MB, free: 24.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003256/0.3301, allocations: 211.6 kB / 371.2 MB, free: 24.51 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.304e-05/0.3302, allocations: 15.14 kB / 371.2 MB, free: 24.51 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.3303, allocations: 369.1 kB / 371.6 MB, free: 24.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007033/0.3311, allocations: 254.5 kB / 371.8 MB, free: 24.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006351/0.3317, allocations: 355.4 kB / 372.1 MB, free: 24.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005924/0.3323, allocations: 293.3 kB / 372.4 MB, free: 24.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3323, allocations: 1.219 kB / 372.4 MB, free: 24.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001711/0.334, allocations: 0.7561 MB / 373.2 MB, free: 24.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.3341, allocations: 5.594 kB / 373.2 MB, free: 24.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.3341, allocations: 4.109 kB / 373.2 MB, free: 24.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001775/0.3343, allocations: 39.28 kB / 373.2 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007724/0.335, allocations: 173.9 kB / 373.4 MB, free: 24.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007982/0.3359, allocations: 1.331 MB / 374.7 MB, free: 22.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000626/0.3365, allocations: 44.09 kB / 374.8 MB, free: 22.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-05/0.3366, allocations: 23.7 kB / 374.8 MB, free: 22.75 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 (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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002977/0.3369, allocations: 204.9 kB / 375 MB, free: 22.62 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/0.337, allocations: 64.77 kB / 375.1 MB, free: 22.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001723/0.3387, allocations: 0.8631 MB / 375.9 MB, free: 22.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.3388, allocations: 8.234 kB / 375.9 MB, free: 22.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.786e-06/0.3388, allocations: 0 / 375.9 MB, free: 22.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.3388, allocations: 4.078 kB / 375.9 MB, free: 22.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003453/0.3422, allocations: 1.891 MB / 377.8 MB, free: 21.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3423, allocations: 0 / 377.8 MB, free: 21.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004979/0.3428, allocations: 110.1 kB / 377.9 MB, free: 21.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002194/0.345, allocations: 0.4945 MB / 378.4 MB, free: 21.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.1e-05/0.345, allocations: 17.55 kB / 378.5 MB, free: 21.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00431/0.3494, allocations: 2.947 MB / 381.4 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3494, allocations: 1.969 kB / 381.4 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002685/0.3521, allocations: 1.411 MB / 382.8 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002739/0.3524, allocations: 203.6 kB / 383 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.2e-05/0.3524, allocations: 16.22 kB / 383 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000523/0.353, allocations: 45.73 kB / 383.1 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001551/0.3531, allocations: 50.12 kB / 383.1 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.402e-05/0.3532, allocations: 21.81 kB / 383.1 MB, free: 18.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004796/0.3537, allocations: 388.8 kB / 383.5 MB, free: 17.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3537, allocations: 0 / 383.5 MB, free: 17.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007559/0.3544, allocations: 184.3 kB / 383.7 MB, free: 17.95 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 (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 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.003045/0.3575, allocations: 2.005 MB / 385.7 MB, free: 16.7 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00149/0.359, allocations: 0.7461 MB / 386.5 MB, free: 16.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.359, allocations: 0 / 386.5 MB, free: 16.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008962/0.3599, allocations: 0.5304 MB / 387 MB, free: 16.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008267/0.3608, allocations: 89.91 kB / 387.1 MB, free: 16.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006993/0.3678, allocations: 4.355 MB / 391.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000327/0.3681, allocations: 0.8983 MB / 392.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003664/0.3685, allocations: 71.48 kB / 392.4 MB, free: 13 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003106/0.3688, allocations: 239.5 kB / 392.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3688, allocations: 0 / 392.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02557/0.3944, allocations: 14.87 MB / 407.5 MB, free: 436 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001468/0.3946, allocations: 270.8 kB / 407.8 MB, free: 56 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.085/2.48, allocations: 7.688 kB / 407.8 MB, free: 52 kB / 302.1 MB (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/linux/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 --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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat