Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.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.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",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.002464/0.002468, allocations: 182.2 kB / 16.4 MB, free: 5.754 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.096/2.096, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.001162/0.001161, allocations: 100.2 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003999/0.0004001, allocations: 8 kB / 327 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4049/0.4054, allocations: 47.58 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.002348/0.4078, allocations: 1.61 MB / 376.2 MB, free: 44.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001235/0.4091, allocations: 0.5675 MB / 376.8 MB, free: 43.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.4092, allocations: 1.25 kB / 376.8 MB, free: 43.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.755e-05/0.4093, allocations: 13.91 kB / 376.8 MB, free: 43.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001763/0.4095, allocations: 49.59 kB / 376.9 MB, free: 43.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003981/0.4099, allocations: 69.03 kB / 376.9 MB, free: 43.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001918/0.4101, allocations: 121.9 kB / 377.1 MB, free: 43.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001575/0.4103, allocations: 32.47 kB / 377.1 MB, free: 43.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001922/0.4105, allocations: 69.88 kB / 377.2 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.4106, allocations: 69.16 kB / 377.2 MB, free: 43.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.362e-05/0.4107, allocations: 8.281 kB / 377.2 MB, free: 43.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.106e-05/0.4107, allocations: 8.125 kB / 377.2 MB, free: 43.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.623e-05/0.4107, allocations: 32.23 kB / 377.3 MB, free: 43.4 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.121e-05/0.4108, allocations: 49.77 kB / 377.3 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001743/0.411, allocations: 126.9 kB / 377.4 MB, free: 43.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.411, allocations: 0 / 377.4 MB, free: 43.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.411, allocations: 0 / 377.4 MB, free: 43.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.411, allocations: 0 / 377.4 MB, free: 43.27 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0009588/0.412, allocations: 446.2 kB / 377.9 MB, free: 42.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.4121, allocations: 8.531 kB / 377.9 MB, free: 42.84 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.19e-05/0.4121, allocations: 46.08 kB / 377.9 MB, free: 42.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.611e-05/0.4122, allocations: 16.16 kB / 377.9 MB, free: 42.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000173/0.4124, allocations: 205.1 kB / 378.1 MB, free: 42.56 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.4124, allocations: 7.375 kB / 378.2 MB, free: 42.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.074e-05/0.4125, allocations: 10.94 kB / 378.2 MB, free: 42.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000444/0.4129, allocations: 150.2 kB / 378.3 MB, free: 42.44 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.4129, allocations: 0 / 378.3 MB, free: 42.44 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.539e-05/0.413, allocations: 5.344 kB / 378.3 MB, free: 42.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.413, allocations: 6.656 kB / 378.3 MB, free: 42.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004556/0.4135, allocations: 98.88 kB / 378.4 MB, free: 42.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.4147, allocations: 0.5111 MB / 378.9 MB, free: 41.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004919/0.4152, allocations: 107.5 kB / 379 MB, free: 41.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.4152, allocations: 3.953 kB / 379 MB, free: 41.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.077e-05/0.4152, allocations: 40.75 kB / 379.1 MB, free: 41.8 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.934e-06/0.4153, allocations: 0 / 379.1 MB, free: 41.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0007552/0.416, allocations: 150.8 kB / 379.2 MB, free: 41.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/0.4161, allocations: 107.9 kB / 379.3 MB, free: 41.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001631/0.4163, allocations: 156.2 kB / 379.5 MB, free: 41.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.4163, allocations: 26.77 kB / 379.5 MB, free: 41.43 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.392e-05/0.4164, allocations: 191.7 kB / 379.7 MB, free: 41.24 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.204e-05/0.4164, allocations: 31.19 kB / 379.7 MB, free: 41.21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.057e-05/0.4164, allocations: 0 / 379.7 MB, free: 41.21 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.544e-05/0.4165, allocations: 311.9 kB / 380 MB, free: 40.9 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002158/0.4167, allocations: 44.5 kB / 380.1 MB, free: 40.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002532/0.417, allocations: 86.39 kB / 380.2 MB, free: 40.81 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002351/0.4172, allocations: 46.92 kB / 380.2 MB, free: 40.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.696e-06/0.4173, allocations: 0 / 380.2 MB, free: 40.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0005401/0.4178, allocations: 142.2 kB / 380.3 MB, free: 40.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.4178, allocations: 10.45 kB / 380.4 MB, free: 40.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.4179, allocations: 1.406 kB / 380.4 MB, free: 40.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.4179, allocations: 5.484 kB / 380.4 MB, free: 40.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/0.4189, allocations: 86.83 kB / 380.4 MB, free: 40.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001594/0.4206, allocations: 1.404 MB / 381.9 MB, free: 39.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003083/0.4209, allocations: 25.86 kB / 381.9 MB, free: 39.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.974e-05/0.4209, allocations: 2.875 kB / 381.9 MB, free: 39.21 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001261/0.4211, allocations: 131.8 kB / 382 MB, free: 39.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.886e-05/0.4211, allocations: 14.17 kB / 382 MB, free: 39.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007174/0.4218, allocations: 163.7 kB / 382.2 MB, free: 38.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.4219, allocations: 0 / 382.2 MB, free: 38.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.4219, allocations: 1.938 kB / 382.2 MB, free: 38.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.4219, allocations: 3.984 kB / 382.2 MB, free: 38.96 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002771/0.4222, allocations: 222 kB / 382.4 MB, free: 38.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.4222, allocations: 4.984 kB / 382.4 MB, free: 38.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002592/0.4225, allocations: 34.03 kB / 382.4 MB, free: 38.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003703/0.4228, allocations: 34.95 kB / 382.5 MB, free: 38.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/0.4229, allocations: 5.312 kB / 382.5 MB, free: 38.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001174/0.4241, allocations: 1.303 MB / 383.8 MB, free: 37.33 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.4241, allocations: 1.438 kB / 383.8 MB, free: 37.33 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000963/0.4251, allocations: 304.1 kB / 384.1 MB, free: 37.11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.615e-05/0.4251, allocations: 96.14 kB / 384.2 MB, free: 37 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.217e-05/0.4252, allocations: 1.562 kB / 384.2 MB, free: 37 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002727/0.4255, allocations: 18.77 kB / 384.2 MB, free: 36.99 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.626e-05/0.4256, allocations: 6.828 kB / 384.2 MB, free: 36.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.4256, allocations: 6.625 kB / 384.2 MB, free: 36.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001188/0.4257, allocations: 117.5 kB / 384.3 MB, free: 36.89 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4257, allocations: 0 / 384.3 MB, free: 36.89 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004575/0.4262, allocations: 31.75 kB / 384.4 MB, free: 36.89 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001237/0.4274, allocations: 0.8408 MB / 385.2 MB, free: 36.13 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001204/0.4287, allocations: 146.5 kB / 385.3 MB, free: 36.07 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.4287, allocations: 3.938 kB / 385.3 MB, free: 36.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000447/0.4292, allocations: 162.1 kB / 385.5 MB, free: 35.94 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002531/0.4294, allocations: 10.06 kB / 385.5 MB, free: 35.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002918/0.4324, allocations: 1.157 MB / 386.7 MB, free: 34.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001767/0.4326, allocations: 0.7195 MB / 387.4 MB, free: 34.21 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.4327, allocations: 37.23 kB / 387.4 MB, free: 34.18 MB / 298.7 MB Notification: Performance of SimCode: time 1.082e-06/0.4327, allocations: 4 kB / 387.4 MB, free: 34.18 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.627/3.06, allocations: 2.719 MB / 390.2 MB, free: 32.52 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat does not exist to compare? outputFormat=mat