Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_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.001125/0.001125, allocations: 106.6 kB / 17.73 MB, free: 5.348 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.001056/0.001056, allocations: 191 kB / 18.66 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.399/1.399, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 52.39 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09389/0.09513, allocations: 46.62 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005112/0.1003, allocations: 3.345 MB / 378 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002851/0.1032, allocations: 1.392 MB / 379.4 MB, free: 328 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004367/0.1036, allocations: 8 kB / 379.4 MB, free: 320 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2109/0.3146, allocations: 2.656 MB / 382 MB, free: 9.129 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007852/0.3154, allocations: 174.9 kB / 382.2 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007386/0.3161, allocations: 278.6 kB / 382.5 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002099/0.3182, allocations: 1.797 MB / 384.3 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002499/0.3185, allocations: 138.6 kB / 384.4 MB, free: 9.082 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004445/0.319, allocations: 317.2 kB / 384.7 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000411/0.3194, allocations: 324.7 kB / 385 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.832e-05/0.3195, allocations: 44.62 kB / 385.1 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001778/0.3197, allocations: 72.53 kB / 385.2 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006563/0.3203, allocations: 0.8458 MB / 386 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005907/0.3209, allocations: 0.935 MB / 386.9 MB, free: 8.457 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002638/0.3236, allocations: 2.606 MB / 389.5 MB, free: 7.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.3236, allocations: 0 / 389.5 MB, free: 7.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3236, allocations: 0 / 389.5 MB, free: 7.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.61e-05/0.3236, allocations: 1.5 kB / 389.5 MB, free: 7.84 MB / 318.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.004394/0.328, allocations: 2.799 MB / 392.3 MB, free: 5.988 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.3281, allocations: 12.67 kB / 392.4 MB, free: 5.984 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.82e-05/0.3282, allocations: 80.25 kB / 392.4 MB, free: 5.918 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000375/0.3286, allocations: 276.2 kB / 392.7 MB, free: 5.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002335/0.3309, allocations: 1.824 MB / 394.5 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.258e-05/0.331, allocations: 60.73 kB / 394.6 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001644/0.3312, allocations: 48.89 kB / 394.6 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006502/0.3318, allocations: 392.9 kB / 395 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/0.3318, allocations: 1.375 kB / 395 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.591e-05/0.3319, allocations: 17.84 kB / 395 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.3319, allocations: 9.625 kB / 395 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006294/0.3325, allocations: 329.3 kB / 395.4 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00407/0.3366, allocations: 2.898 MB / 398.3 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005935/0.3372, allocations: 315.5 kB / 398.6 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002884/0.3375, allocations: 170.3 kB / 398.7 MB, free: 2.375 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.559e-05/0.3376, allocations: 4.594 kB / 398.7 MB, free: 2.375 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.311e-05/0.3376, allocations: 40.69 kB / 398.8 MB, free: 2.328 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 2.164e-06/0.3376, allocations: 0 / 398.8 MB, free: 2.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=48): time 0.004755/0.3424, allocations: 2.366 MB / 401.2 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/0.3424, allocations: 82.89 kB / 401.2 MB, free: 0.707 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007254/0.3497, allocations: 5.44 MB / 406.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.894e-05/0.3498, allocations: 35.08 kB / 406.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001111/0.3509, allocations: 1.202 MB / 407.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001455/0.3511, allocations: 174.7 kB / 408.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001437/0.3512, allocations: 88.66 kB / 408.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.3514, allocations: 330 kB / 408.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003448/0.3517, allocations: 137.2 kB / 408.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000369/0.3521, allocations: 220.5 kB / 408.8 MB, free: 12.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006727/0.3528, allocations: 386.2 kB / 409.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3528, allocations: 0 / 409.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001342/0.3541, allocations: 0.6841 MB / 409.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.3542, allocations: 8 kB / 409.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.3542, allocations: 3.938 kB / 409.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.3542, allocations: 4 kB / 409.9 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004993/0.3547, allocations: 123.8 kB / 410 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.3547, allocations: 8.844 kB / 410 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005255/0.3553, allocations: 15.94 kB / 410.1 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.207e-05/0.3553, allocations: 20 kB / 410.1 MB, free: 11.31 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001345/0.3567, allocations: 0.9193 MB / 411 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003634/0.357, allocations: 264.5 kB / 411.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001423/0.3585, allocations: 0.7807 MB / 412 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.792e-06/0.3585, allocations: 4 kB / 412 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.3585, allocations: 4 kB / 412 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/0.3585, allocations: 3.984 kB / 412.1 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001845/0.3603, allocations: 1.475 MB / 413.5 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/0.3604, allocations: 0 / 413.5 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004456/0.3608, allocations: 95.88 kB / 413.6 MB, free: 7.707 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003037/0.3611, allocations: 80.8 kB / 413.7 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.757e-05/0.3612, allocations: 19.94 kB / 413.7 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005322/0.3617, allocations: 0.6297 MB / 414.3 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3617, allocations: 4.031 kB / 414.4 MB, free: 6.949 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001628/0.3634, allocations: 1.061 MB / 415.4 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001201/0.3646, allocations: 493.5 kB / 415.9 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003935/0.365, allocations: 8 kB / 415.9 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009157/0.3659, allocations: 19.98 kB / 415.9 MB, free: 5.332 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.366, allocations: 36.39 kB / 416 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.392e-05/0.3661, allocations: 12 kB / 416 MB, free: 5.285 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.007483/0.3736, allocations: 3.974 MB / 419.9 MB, free: 1.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3736, allocations: 0 / 419.9 MB, free: 1.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001354/0.375, allocations: 207.9 kB / 420.1 MB, free: 1.117 MB / 334.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 (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 {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003478/0.3785, allocations: 1.929 MB / 422.1 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008907/0.3794, allocations: 385 kB / 422.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.3794, allocations: 0 / 422.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004811/0.3799, allocations: 218.3 kB / 422.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0023/0.3822, allocations: 191.6 kB / 422.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05285/0.4351, allocations: 19.25 MB / 442.1 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001974/0.4371, allocations: 1.821 MB / 443.9 MB, free: 9.125 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008573/0.438, allocations: 279.6 kB / 444.2 MB, free: 8.848 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001546/0.4395, allocations: 0.9366 MB / 445.1 MB, free: 7.91 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4396, allocations: 0 / 445.1 MB, free: 7.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0845/0.5241, allocations: 39.31 MB / 484.4 MB, free: 0.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.29/16.81, allocations: 8.234 kB / 484.5 MB, free: 0.4922 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1)