Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002603/0.002602, allocations: 182.6 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.035/2.035, allocations: 205.4 MB / 222.5 MB, free: 9.098 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001206/0.001206, allocations: 101.8 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004062/0.0004062, allocations: 16 kB / 327.1 MB, free: 88 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.355/0.3554, allocations: 47.57 MB / 374.6 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.004991/0.3605, allocations: 3.462 MB / 378.1 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003728/0.3643, allocations: 1.56 MB / 379.7 MB, free: 41.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00061/0.3649, allocations: 7.375 kB / 379.7 MB, free: 41.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000345/0.3653, allocations: 95.84 kB / 379.8 MB, free: 41.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0013/0.3666, allocations: 344.6 kB / 380.1 MB, free: 41.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006173/0.3672, allocations: 147.4 kB / 380.2 MB, free: 40.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00131/0.3686, allocations: 0.6036 MB / 380.8 MB, free: 40.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004099/0.369, allocations: 179.5 kB / 381 MB, free: 40.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006347/0.3696, allocations: 308.4 kB / 381.3 MB, free: 40.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000589/0.3703, allocations: 366 kB / 381.7 MB, free: 40.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001288/0.3704, allocations: 46.22 kB / 381.7 MB, free: 40.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005744/0.371, allocations: 163 kB / 381.9 MB, free: 39.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001441/0.3711, allocations: 130.8 kB / 382 MB, free: 39.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001936/0.3714, allocations: 155.4 kB / 382.2 MB, free: 39.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001127/0.3725, allocations: 0.8849 MB / 383 MB, free: 39.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.3725, allocations: 0 / 383 MB, free: 39.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3725, allocations: 1.125 kB / 383 MB, free: 39.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.487e-05/0.3725, allocations: 0 / 383 MB, free: 39.09 MB / 298.7 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.003532/0.3761, allocations: 0.9825 MB / 384 MB, free: 38.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.902e-05/0.3762, allocations: 13.84 kB / 384 MB, free: 38.33 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002265/0.3764, allocations: 95.89 kB / 384.1 MB, free: 38.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002134/0.3766, allocations: 78.72 kB / 384.2 MB, free: 38.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.3777, allocations: 0.5 MB / 384.7 MB, free: 37.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001087/0.3778, allocations: 71.61 kB / 384.8 MB, free: 37.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000325/0.3781, allocations: 62.23 kB / 384.8 MB, free: 37.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001804/0.38, allocations: 0.6091 MB / 385.5 MB, free: 37.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.928e-05/0.38, allocations: 0 / 385.5 MB, free: 37.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.848e-05/0.3801, allocations: 25.16 kB / 385.5 MB, free: 37.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.15e-05/0.3801, allocations: 14.19 kB / 385.5 MB, free: 37.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001917/0.3821, allocations: 0.5353 MB / 386 MB, free: 37.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00518/0.3873, allocations: 2.323 MB / 388.3 MB, free: 34.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00154/0.3889, allocations: 494.2 kB / 388.8 MB, free: 34.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.401e-05/0.3889, allocations: 4 kB / 388.8 MB, free: 34.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/0.389, allocations: 42.56 kB / 388.9 MB, free: 34.28 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 3.045e-06/0.389, allocations: 0 / 388.9 MB, free: 34.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.0229/0.4119, allocations: 3.691 MB / 392.6 MB, free: 30.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.189e-05/0.412, allocations: 89.67 kB / 392.7 MB, free: 30.39 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001037/0.4131, allocations: 0.5293 MB / 393.2 MB, free: 29.86 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001551/0.4132, allocations: 37.7 kB / 393.2 MB, free: 29.81 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000201/0.4134, allocations: 350.7 kB / 393.6 MB, free: 29.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002062/0.4137, allocations: 205 kB / 393.8 MB, free: 29.26 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.288e-05/0.4137, allocations: 16 kB / 393.8 MB, free: 29.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.169e-05/0.4138, allocations: 330.8 kB / 394.1 MB, free: 28.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009676/0.4148, allocations: 257.2 kB / 394.4 MB, free: 28.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009766/0.4158, allocations: 356.4 kB / 394.7 MB, free: 28.28 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009987/0.4168, allocations: 294.1 kB / 395 MB, free: 27.99 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.4168, allocations: 0 / 395 MB, free: 27.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002365/0.4192, allocations: 0.726 MB / 395.7 MB, free: 27.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.717e-05/0.4193, allocations: 12.89 kB / 395.7 MB, free: 27.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.4193, allocations: 192 / 395.7 MB, free: 27.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002356/0.4195, allocations: 40.83 kB / 395.8 MB, free: 27.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001481/0.421, allocations: 163.8 kB / 395.9 MB, free: 27.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001162/0.4222, allocations: 1.351 MB / 397.3 MB, free: 25.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001231/0.4235, allocations: 48.03 kB / 397.3 MB, free: 25.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/0.4236, allocations: 23.98 kB / 397.3 MB, free: 25.48 MB / 298.7 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.0004862/0.4241, allocations: 201.7 kB / 397.5 MB, free: 25.28 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002481/0.4244, allocations: 63.3 kB / 397.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003088/0.4275, allocations: 0.8608 MB / 398.5 MB, free: 24.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.735e-05/0.4275, allocations: 8 kB / 398.5 MB, free: 24.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.4276, allocations: 0 / 398.5 MB, free: 24.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.65e-05/0.4276, allocations: 3.984 kB / 398.5 MB, free: 24.33 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006163/0.4338, allocations: 1.893 MB / 400.4 MB, free: 22.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/0.4338, allocations: 7.984 kB / 400.4 MB, free: 22.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/0.4349, allocations: 111.9 kB / 400.5 MB, free: 22.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004392/0.4393, allocations: 0.4925 MB / 401 MB, free: 21.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001366/0.4395, allocations: 16 kB / 401 MB, free: 21.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007656/0.4471, allocations: 3.021 MB / 404 MB, free: 18.6 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.4472, allocations: 3.938 kB / 404 MB, free: 18.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004869/0.4521, allocations: 1.415 MB / 405.4 MB, free: 17.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005056/0.4526, allocations: 208.3 kB / 405.6 MB, free: 16.93 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001451/0.4528, allocations: 19.98 kB / 405.7 MB, free: 16.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/0.4538, allocations: 51.97 kB / 405.7 MB, free: 16.86 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000228/0.4541, allocations: 56.44 kB / 405.8 MB, free: 16.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.209e-05/0.4542, allocations: 16.09 kB / 405.8 MB, free: 16.79 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006359/0.4548, allocations: 382.9 kB / 406.2 MB, free: 16.42 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4548, allocations: 4 kB / 406.2 MB, free: 16.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001065/0.4559, allocations: 184 kB / 406.3 MB, free: 16.23 MB / 298.7 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.005282/0.4612, allocations: 2.083 MB / 408.4 MB, free: 14.12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002322/0.4636, allocations: 0.7598 MB / 409.2 MB, free: 13.35 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.4636, allocations: 0 / 409.2 MB, free: 13.35 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001411/0.465, allocations: 0.5295 MB / 409.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009374/0.466, allocations: 84.31 kB / 409.8 MB, free: 12.72 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01147/0.4775, allocations: 5.856 MB / 415.6 MB, free: 6.762 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004168/0.4779, allocations: 0.924 MB / 416.6 MB, free: 5.809 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006358/0.4786, allocations: 243.3 kB / 416.8 MB, free: 5.57 MB / 298.7 MB Notification: Performance of SimCode: time 9.51e-07/0.4786, allocations: 4 kB / 416.8 MB, free: 5.566 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.735/3.214, allocations: 14.22 MB / 431 MB, free: 7.359 MB / 314.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=0.0001 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1)