Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0008238/0.0008239, allocations: 101.6 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008445/0.0008445, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000263/0.0002632, allocations: 4 kB / 306.8 MB, free: 1.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1146, allocations: 51.49 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.003841/0.1184, allocations: 2.946 MB / 361.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002765/0.1212, allocations: 1.552 MB / 362.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003916/0.1217, allocations: 7.938 kB / 362.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002392/0.1241, allocations: 1.719 MB / 364.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006684/0.1248, allocations: 167 kB / 364.7 MB, free: 7.566 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007579/0.1255, allocations: 263 kB / 365 MB, free: 7.312 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00211/0.1277, allocations: 1.411 MB / 366.4 MB, free: 5.895 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000323/0.128, allocations: 107.2 kB / 366.5 MB, free: 5.785 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007354/0.1287, allocations: 303 kB / 366.8 MB, free: 5.488 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005981/0.1294, allocations: 306.9 kB / 367.1 MB, free: 5.188 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001495/0.1295, allocations: 24 kB / 367.1 MB, free: 5.164 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002763/0.1298, allocations: 59.98 kB / 367.1 MB, free: 5.105 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006828/0.1305, allocations: 0.8415 MB / 368 MB, free: 4.262 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004427/0.1309, allocations: 384.3 kB / 368.4 MB, free: 3.879 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001922/0.1329, allocations: 2.105 MB / 370.5 MB, free: 1.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.1329, allocations: 0 / 370.5 MB, free: 1.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.1329, allocations: 0 / 370.5 MB, free: 1.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.343e-05/0.133, allocations: 0 / 370.5 MB, free: 1.77 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.2127/0.3457, allocations: 2.443 MB / 372.9 MB, free: 17.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/0.3457, allocations: 9.219 kB / 372.9 MB, free: 17.87 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002011/0.346, allocations: 78.34 kB / 373 MB, free: 17.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000639/0.3466, allocations: 294.3 kB / 373.3 MB, free: 17.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003496/0.3501, allocations: 1.694 MB / 375 MB, free: 17.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001189/0.3502, allocations: 62.77 kB / 375 MB, free: 17.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002379/0.3505, allocations: 48.77 kB / 375.1 MB, free: 17.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.3517, allocations: 388.4 kB / 375.5 MB, free: 17.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.398e-05/0.3517, allocations: 1.484 kB / 375.5 MB, free: 17.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.439e-05/0.3518, allocations: 17.28 kB / 375.5 MB, free: 17.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.762e-05/0.3518, allocations: 9.844 kB / 375.5 MB, free: 17.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009295/0.3527, allocations: 333.4 kB / 375.8 MB, free: 17.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005713/0.3584, allocations: 2.915 MB / 378.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006506/0.3591, allocations: 313.9 kB / 379 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003219/0.3595, allocations: 167.2 kB / 379.2 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.738e-05/0.3595, allocations: 7.703 kB / 379.2 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.3596, allocations: 38.11 kB / 379.2 MB, free: 15.49 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.245e-06/0.3596, allocations: 0 / 379.2 MB, free: 15.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.005507/0.3651, allocations: 2.424 MB / 381.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.331e-05/0.3652, allocations: 84.47 kB / 381.8 MB, free: 14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009996/0.3752, allocations: 5.456 MB / 387.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001185/0.3753, allocations: 32.28 kB / 387.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001175/0.3765, allocations: 1.182 MB / 388.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001739/0.3767, allocations: 171.5 kB / 388.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.372e-05/0.3767, allocations: 9.75 kB / 388.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.136e-05/0.3768, allocations: 325.1 kB / 388.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003638/0.3772, allocations: 138.3 kB / 389.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003684/0.3776, allocations: 219.9 kB / 389.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003458/0.3779, allocations: 170.6 kB / 389.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.3779, allocations: 1.375 kB / 389.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001682/0.3796, allocations: 0.6921 MB / 390.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.062e-05/0.3797, allocations: 9.688 kB / 390.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.3797, allocations: 2.156 kB / 390.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.552e-05/0.3797, allocations: 5.656 kB / 390.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005401/0.3803, allocations: 131.6 kB / 390.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.482e-05/0.3803, allocations: 4.438 kB / 390.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007522/0.381, allocations: 22.06 kB / 390.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.06e-05/0.3811, allocations: 18.55 kB / 390.3 MB, free: 10.3 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.001575/0.3827, allocations: 0.9165 MB / 391.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000421/0.3831, allocations: 275.1 kB / 391.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001537/0.3846, allocations: 0.7981 MB / 392.3 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/0.3847, allocations: 9.172 kB / 392.3 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3847, allocations: 1.156 kB / 392.3 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/0.3847, allocations: 0 / 392.3 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00181/0.3865, allocations: 1.479 MB / 393.8 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.3865, allocations: 1.75 kB / 393.8 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004134/0.3869, allocations: 95.78 kB / 393.9 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003532/0.3873, allocations: 93.44 kB / 394 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.949e-05/0.3873, allocations: 11.56 kB / 394 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004097/0.3878, allocations: 0.6503 MB / 394.6 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3878, allocations: 0 / 394.6 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00149/0.3893, allocations: 1.077 MB / 395.7 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005867/0.3899, allocations: 0.4897 MB / 396.2 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001742/0.39, allocations: 12 kB / 396.2 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004288/0.3905, allocations: 27.94 kB / 396.2 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.423e-05/0.3906, allocations: 28.39 kB / 396.3 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.554e-05/0.3906, allocations: 19.98 kB / 396.3 MB, free: 6.379 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.004091/0.3947, allocations: 3.994 MB / 400.3 MB, free: 2.395 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3947, allocations: 0 / 400.3 MB, free: 2.395 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007832/0.3955, allocations: 204 kB / 400.5 MB, free: 2.195 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.002378/0.3979, allocations: 1.933 MB / 402.4 MB, free: 404 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007285/0.3986, allocations: 384.9 kB / 402.8 MB, free: 16 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.3986, allocations: 0 / 402.8 MB, free: 16 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004491/0.3991, allocations: 210.9 kB / 403 MB, free: 15.81 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.4002, allocations: 186.6 kB / 403.2 MB, free: 15.63 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05025/0.4505, allocations: 20.49 MB / 423.7 MB, free: 9.785 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001737/0.4523, allocations: 1.818 MB / 425.5 MB, free: 7.934 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007467/0.453, allocations: 275.8 kB / 425.8 MB, free: 7.66 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001179/0.4542, allocations: 0.9406 MB / 426.7 MB, free: 6.719 MB / 334.1 MB Notification: Performance of SimCode: time 1.453e-06/0.4542, allocations: 3.938 kB / 426.7 MB, free: 6.715 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06869/0.5229, allocations: 39.83 MB / 466.5 MB, free: 15.19 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00023/0.5232, allocations: 308.6 kB / 466.8 MB, free: 14.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.14/3.663, allocations: 0 / 466.8 MB, free: 14.82 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat does not exist to compare? outputFormat=mat