Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001081/0.001081, allocations: 94.27 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001153/0.001153, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.3 MB / 245.9 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002267/0.0002267, allocations: 4 kB / 306.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1198, allocations: 51.49 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.00436/0.1243, allocations: 3.524 MB / 361.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002654/0.1269, allocations: 1.564 MB / 363.3 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002867/0.1273, allocations: 8 kB / 363.3 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002442/0.1275, allocations: 91.3 kB / 363.4 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007414/0.1283, allocations: 343 kB / 363.7 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003414/0.1286, allocations: 151.7 kB / 363.9 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006696/0.1293, allocations: 0.6057 MB / 364.5 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002856/0.1296, allocations: 182 kB / 364.7 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003644/0.13, allocations: 303 kB / 364.9 MB, free: 6.996 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004035/0.1304, allocations: 366.5 kB / 365.3 MB, free: 6.637 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.845e-05/0.1305, allocations: 40 kB / 365.3 MB, free: 6.598 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002882/0.1307, allocations: 163.9 kB / 365.5 MB, free: 6.438 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.1309, allocations: 131.5 kB / 365.6 MB, free: 6.309 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.131, allocations: 161.3 kB / 365.8 MB, free: 6.145 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007072/0.1317, allocations: 0.8883 MB / 366.7 MB, free: 5.254 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.1317, allocations: 0 / 366.7 MB, free: 5.254 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1317, allocations: 0 / 366.7 MB, free: 5.254 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.1317, allocations: 0 / 366.7 MB, free: 5.254 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.001984/0.1337, allocations: 0.9857 MB / 367.7 MB, free: 4.219 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.1338, allocations: 8.031 kB / 367.7 MB, free: 4.211 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001137/0.1339, allocations: 106.4 kB / 367.8 MB, free: 4.098 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002201/0.1341, allocations: 83.16 kB / 367.9 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006841/0.1348, allocations: 0.4902 MB / 368.3 MB, free: 3.484 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.679e-05/0.1349, allocations: 71.02 kB / 368.4 MB, free: 3.406 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001791/0.1351, allocations: 71.97 kB / 368.5 MB, free: 3.336 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001052/0.1362, allocations: 0.6019 MB / 369.1 MB, free: 2.715 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.1362, allocations: 8 kB / 369.1 MB, free: 2.707 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.46e-05/0.1363, allocations: 24 kB / 369.1 MB, free: 2.684 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.1363, allocations: 12 kB / 369.1 MB, free: 2.672 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001047/0.1373, allocations: 0.536 MB / 369.7 MB, free: 2.137 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2288/0.3661, allocations: 2.317 MB / 372 MB, free: 18.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001229/0.3674, allocations: 487.5 kB / 372.5 MB, free: 18.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.276e-05/0.3674, allocations: 6.391 kB / 372.5 MB, free: 18.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/0.3675, allocations: 39.3 kB / 372.5 MB, free: 18.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.715e-06/0.3675, allocations: 9.047 kB / 372.5 MB, free: 18.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.01348/0.381, allocations: 3.692 MB / 376.2 MB, free: 17.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.3811, allocations: 85.16 kB / 376.3 MB, free: 17.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001042/0.3821, allocations: 0.5297 MB / 376.8 MB, free: 17.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.449e-05/0.3822, allocations: 36.36 kB / 376.9 MB, free: 17.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002184/0.3825, allocations: 311.5 kB / 377.2 MB, free: 17.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001621/0.3826, allocations: 212 kB / 377.4 MB, free: 17.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.494e-05/0.3827, allocations: 15.06 kB / 377.4 MB, free: 17.15 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.3828, allocations: 366.7 kB / 377.7 MB, free: 16.81 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005568/0.3834, allocations: 258.6 kB / 378 MB, free: 16.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006291/0.384, allocations: 349.9 kB / 378.3 MB, free: 16.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006138/0.3846, allocations: 298.5 kB / 378.6 MB, free: 16.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.3846, allocations: 0 / 378.6 MB, free: 16.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00162/0.3863, allocations: 0.754 MB / 379.4 MB, free: 16.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.789e-05/0.3863, allocations: 6.922 kB / 379.4 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.3863, allocations: 6.219 kB / 379.4 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001857/0.3865, allocations: 31.39 kB / 379.4 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007936/0.3873, allocations: 170.7 kB / 379.6 MB, free: 16.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000941/0.3883, allocations: 1.345 MB / 380.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006653/0.3889, allocations: 42.73 kB / 381 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.425e-05/0.389, allocations: 28.86 kB / 381 MB, free: 14.66 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.0003302/0.3893, allocations: 197.5 kB / 381.2 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001315/0.3895, allocations: 72.94 kB / 381.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001841/0.3913, allocations: 0.8611 MB / 382.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.3913, allocations: 7.219 kB / 382.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.3914, allocations: 0 / 382.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.3914, allocations: 4.047 kB / 382.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003918/0.3953, allocations: 1.886 MB / 384 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.3953, allocations: 0 / 384 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005532/0.3959, allocations: 118 kB / 384.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002553/0.3985, allocations: 0.5008 MB / 384.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-05/0.3985, allocations: 21.77 kB / 384.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004935/0.4035, allocations: 3.009 MB / 387.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.4035, allocations: 1.062 kB / 387.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003261/0.4068, allocations: 1.422 MB / 389.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004113/0.4072, allocations: 206.8 kB / 389.3 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.116e-05/0.4073, allocations: 15.95 kB / 389.3 MB, free: 9.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006132/0.4079, allocations: 58.88 kB / 389.4 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002091/0.4081, allocations: 45.88 kB / 389.4 MB, free: 9.945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.559e-05/0.4082, allocations: 18.73 kB / 389.4 MB, free: 9.941 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006214/0.4088, allocations: 392.4 kB / 389.8 MB, free: 9.746 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4088, allocations: 0 / 389.8 MB, free: 9.746 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00106/0.4099, allocations: 188.4 kB / 390 MB, free: 9.727 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.003478/0.4134, allocations: 2.082 MB / 392.1 MB, free: 8.395 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001595/0.415, allocations: 0.7498 MB / 392.8 MB, free: 8.059 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.415, allocations: 0 / 392.8 MB, free: 8.059 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.4161, allocations: 0.5277 MB / 393.4 MB, free: 7.781 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007987/0.4169, allocations: 87.78 kB / 393.4 MB, free: 7.738 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008389/0.4253, allocations: 5.848 MB / 399.3 MB, free: 3.691 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004108/0.4257, allocations: 0.9176 MB / 400.2 MB, free: 2.887 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004023/0.4262, allocations: 72.19 kB / 400.3 MB, free: 2.848 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003055/0.4265, allocations: 246 kB / 400.5 MB, free: 2.645 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4265, allocations: 0 / 400.5 MB, free: 2.645 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0542/0.4807, allocations: 14.86 MB / 415.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002344/0.481, allocations: 259.4 kB / 415.6 MB, free: 4.289 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.153/2.634, allocations: 0 / 415.6 MB, free: 4.289 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=0.0001 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat