Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CoupledInductors",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.0009665/0.0009664, allocations: 89.95 kB / 16.31 MB, free: 6.008 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.001447/0.001448, allocations: 184.2 kB / 17.21 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 223.2 MB / 241.2 MB, free: 5.406 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003981/0.0003987, allocations: 5.625 kB / 300.9 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09672/0.09716, allocations: 50.43 MB / 351.3 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.002584/0.0998, allocations: 2.368 MB / 353.7 MB, free: 9.176 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001068/0.1009, allocations: 0.6781 MB / 354.4 MB, free: 8.492 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001147/0.101, allocations: 4 kB / 354.4 MB, free: 8.488 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.721e-05/0.1011, allocations: 47.61 kB / 354.4 MB, free: 8.441 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001757/0.1013, allocations: 79.38 kB / 354.5 MB, free: 8.363 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002811/0.1016, allocations: 95.83 kB / 354.6 MB, free: 8.27 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003883/0.102, allocations: 414.9 kB / 355 MB, free: 7.863 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002671/0.1023, allocations: 170.1 kB / 355.2 MB, free: 7.688 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001785/0.1024, allocations: 139.5 kB / 355.3 MB, free: 7.551 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001925/0.1026, allocations: 163.2 kB / 355.5 MB, free: 7.391 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.901e-05/0.1027, allocations: 28 kB / 355.5 MB, free: 7.363 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.57e-05/0.1027, allocations: 24 kB / 355.5 MB, free: 7.34 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.351e-05/0.1028, allocations: 75.73 kB / 355.6 MB, free: 7.266 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.181e-05/0.1029, allocations: 93.52 kB / 355.7 MB, free: 7.168 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003165/0.1032, allocations: 374.9 kB / 356.1 MB, free: 6.801 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1032, allocations: 0 / 356.1 MB, free: 6.801 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1032, allocations: 0 / 356.1 MB, free: 6.801 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.1032, allocations: 0 / 356.1 MB, free: 6.801 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.0008928/0.1041, allocations: 0.6239 MB / 356.7 MB, free: 6.129 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.1042, allocations: 8.031 kB / 356.7 MB, free: 6.121 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.625e-05/0.1043, allocations: 78.53 kB / 356.8 MB, free: 6.035 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.533e-05/0.1044, allocations: 43.53 kB / 356.8 MB, free: 5.992 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.1046, allocations: 279.1 kB / 357.1 MB, free: 5.676 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.1047, allocations: 29 kB / 357.1 MB, free: 5.648 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.989e-05/0.1047, allocations: 44 kB / 357.1 MB, free: 5.605 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006605/0.1054, allocations: 451.2 kB / 357.6 MB, free: 5.137 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.1054, allocations: 0 / 357.6 MB, free: 5.137 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.8e-05/0.1055, allocations: 23.95 kB / 357.6 MB, free: 5.113 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.1055, allocations: 12 kB / 357.6 MB, free: 5.102 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004764/0.106, allocations: 279.9 kB / 357.9 MB, free: 4.824 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0017/0.1077, allocations: 1.322 MB / 359.2 MB, free: 3.414 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000409/0.1081, allocations: 250.8 kB / 359.5 MB, free: 3.16 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003262/0.1085, allocations: 196.7 kB / 359.7 MB, free: 2.965 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.1085, allocations: 4 kB / 359.7 MB, free: 2.961 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.1085, allocations: 38.56 kB / 359.7 MB, free: 2.914 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 2.024e-06/0.1085, allocations: 0 / 359.7 MB, free: 2.914 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001248/0.1098, allocations: 0.5463 MB / 360.2 MB, free: 2.34 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.1099, allocations: 239.3 kB / 360.5 MB, free: 2.051 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001806/0.1101, allocations: 203 kB / 360.7 MB, free: 1.84 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.775e-05/0.1101, allocations: 37.7 kB / 360.7 MB, free: 1.797 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.1102, allocations: 196.2 kB / 360.9 MB, free: 1.602 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.682e-05/0.1103, allocations: 102.5 kB / 361 MB, free: 1.5 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.39e-05/0.1103, allocations: 11.94 kB / 361 MB, free: 1.488 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.1105, allocations: 338.8 kB / 361.3 MB, free: 1.148 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.1106, allocations: 75.95 kB / 361.4 MB, free: 1.074 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001909/0.1108, allocations: 152.5 kB / 361.6 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001729/0.111, allocations: 99.78 kB / 361.7 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.111, allocations: 0 / 361.7 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000419/0.1114, allocations: 277.2 kB / 361.9 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.1114, allocations: 4 kB / 361.9 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.1115, allocations: 0 / 361.9 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.1115, allocations: 4 kB / 361.9 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003197/0.1118, allocations: 83.89 kB / 362 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.1118, allocations: 0 / 362 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001479/0.112, allocations: 31.8 kB / 362.1 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.738e-05/0.112, allocations: 8 kB / 362.1 MB, free: 400 kB / 286.1 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 (38): * Single equations (assignments): 38 * 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.0001382/0.1121, allocations: 161.7 kB / 362.2 MB, free: 228 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.91e-05/0.1122, allocations: 19.81 kB / 362.2 MB, free: 208 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.349e-05/0.1123, allocations: 34.64 kB / 362.3 MB, free: 168 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.1123, allocations: 4 kB / 362.3 MB, free: 164 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.1123, allocations: 4 kB / 362.3 MB, free: 160 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.1123, allocations: 0 / 362.3 MB, free: 160 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.1133, allocations: 0.7759 MB / 363.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1133, allocations: 0 / 363.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002422/0.1136, allocations: 55.91 kB / 363.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002852/0.1139, allocations: 92.73 kB / 363.2 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.724e-05/0.1139, allocations: 4 kB / 363.2 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001653/0.1156, allocations: 1.828 MB / 365 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1156, allocations: 0 / 365 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006927/0.1163, allocations: 0.5062 MB / 365.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.977e-05/0.1163, allocations: 104.8 kB / 365.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.557e-05/0.1164, allocations: 11.95 kB / 365.7 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001449/0.1165, allocations: 11.98 kB / 365.7 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.741e-05/0.1166, allocations: 27.91 kB / 365.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.327e-05/0.1166, allocations: 4 kB / 365.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001152/0.1168, allocations: 148.6 kB / 365.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1168, allocations: 0 / 365.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003696/0.1171, allocations: 107.6 kB / 366 MB, free: 12.25 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (L1.iinternal,L2.iinternal,C1.vinternal,L3.iinternal,C2.vinternal) * 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 (18): * Single equations (assignments): 17 * 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 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009466/0.1181, allocations: 1.054 MB / 367 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003654/0.1185, allocations: 208.1 kB / 367.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1185, allocations: 0 / 367.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003791/0.1189, allocations: 278.5 kB / 367.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003617/0.1193, allocations: 42.3 kB / 367.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002346/0.1216, allocations: 1.912 MB / 369.4 MB, free: 8.668 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003452/0.122, allocations: 0.7833 MB / 370.2 MB, free: 7.859 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.1221, allocations: 29.92 kB / 370.2 MB, free: 7.828 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.1222, allocations: 99.41 kB / 370.3 MB, free: 7.73 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1222, allocations: 0 / 370.3 MB, free: 7.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01754/0.1398, allocations: 5.316 MB / 375.7 MB, free: 2.586 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/0.14, allocations: 214 kB / 375.9 MB, free: 2.344 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.939/2.079, allocations: 0 / 375.9 MB, free: 2.344 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CoupledInductors_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CoupledInductors.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat does not exist to compare? outputFormat=mat