Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.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.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008304/0.0008304, allocations: 98.47 kB / 17.01 MB, free: 6.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001134/0.001134, allocations: 193.8 kB / 17.91 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.3 MB / 246 MB, free: 10.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002294/0.0002294, allocations: 4 kB / 306.8 MB, free: 1.297 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09773/0.09798, allocations: 51.48 MB / 358.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.002459/0.1005, allocations: 2.383 MB / 360.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0012/0.1017, allocations: 0.7248 MB / 361.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.1018, allocations: 8 kB / 361.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.293e-05/0.1019, allocations: 51.61 kB / 361.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000206/0.1021, allocations: 75.36 kB / 361.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003053/0.1024, allocations: 103.8 kB / 361.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004052/0.1029, allocations: 414.8 kB / 362 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002686/0.1031, allocations: 166.3 kB / 362.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002201/0.1034, allocations: 139.6 kB / 362.3 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002046/0.1036, allocations: 167.2 kB / 362.5 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.187e-05/0.1036, allocations: 24 kB / 362.5 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.545e-05/0.1037, allocations: 28 kB / 362.6 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.709e-05/0.1038, allocations: 71.73 kB / 362.6 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.673e-05/0.1039, allocations: 97.52 kB / 362.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003446/0.1042, allocations: 383.1 kB / 363.1 MB, free: 8.977 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1042, allocations: 4 kB / 363.1 MB, free: 8.973 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.1042, allocations: 0 / 363.1 MB, free: 8.973 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.1043, allocations: 3.938 kB / 363.1 MB, free: 8.969 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.0008499/0.1051, allocations: 0.6278 MB / 363.7 MB, free: 8.293 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.1052, allocations: 8.031 kB / 363.7 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.674e-05/0.1052, allocations: 82.52 kB / 363.8 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002005/0.1054, allocations: 55.52 kB / 363.9 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002556/0.1057, allocations: 275.2 kB / 364.1 MB, free: 7.828 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.625e-05/0.1057, allocations: 36.95 kB / 364.2 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.705e-05/0.1058, allocations: 40 kB / 364.2 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006407/0.1065, allocations: 447.3 kB / 364.7 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.1065, allocations: 0 / 364.7 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.556e-05/0.1065, allocations: 20 kB / 364.7 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.1065, allocations: 15.98 kB / 364.7 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004873/0.107, allocations: 279.9 kB / 365 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001694/0.1087, allocations: 1.318 MB / 366.3 MB, free: 5.574 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00041/0.1092, allocations: 245.9 kB / 366.5 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003319/0.1095, allocations: 205.8 kB / 366.7 MB, free: 5.125 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.1095, allocations: 4 kB / 366.7 MB, free: 5.121 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.1096, allocations: 38.56 kB / 366.8 MB, free: 5.074 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.633e-06/0.1096, allocations: 0 / 366.8 MB, free: 5.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.00124/0.1108, allocations: 0.5462 MB / 367.3 MB, free: 4.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.532e-05/0.1109, allocations: 239.3 kB / 367.5 MB, free: 4.211 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001709/0.1111, allocations: 203 kB / 367.7 MB, free: 4.004 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.353e-05/0.1111, allocations: 29.7 kB / 367.8 MB, free: 3.969 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.1113, allocations: 204.2 kB / 368 MB, free: 3.762 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.674e-05/0.1113, allocations: 102.5 kB / 368.1 MB, free: 3.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.37e-05/0.1114, allocations: 8 kB / 368.1 MB, free: 3.652 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.785e-05/0.1115, allocations: 334.8 kB / 368.4 MB, free: 3.316 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.1116, allocations: 79.72 kB / 368.5 MB, free: 3.238 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.1118, allocations: 160.4 kB / 368.6 MB, free: 3.051 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001805/0.112, allocations: 95.95 kB / 368.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.112, allocations: 0 / 368.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004234/0.1124, allocations: 277.1 kB / 369 MB, free: 2.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.1125, allocations: 12 kB / 369 MB, free: 2.668 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.1125, allocations: 0 / 369 MB, free: 2.668 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.1125, allocations: 3.953 kB / 369 MB, free: 2.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003254/0.1128, allocations: 79.89 kB / 369.1 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.156e-06/0.1129, allocations: 4 kB / 369.1 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.113, allocations: 31.69 kB / 369.1 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.805e-05/0.113, allocations: 11.98 kB / 369.1 MB, free: 2.539 MB / 302.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.0001467/0.1132, allocations: 161.8 kB / 369.3 MB, free: 2.371 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.659e-05/0.1132, allocations: 23.72 kB / 369.3 MB, free: 2.348 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.022e-05/0.1133, allocations: 30.66 kB / 369.4 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.1133, allocations: 7.953 kB / 369.4 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.1133, allocations: 0 / 369.4 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1134, allocations: 3.984 kB / 369.4 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009679/0.1143, allocations: 0.7739 MB / 370.1 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.1143, allocations: 0 / 370.1 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002355/0.1146, allocations: 59.89 kB / 370.2 MB, free: 1.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002867/0.1149, allocations: 88.75 kB / 370.3 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.1149, allocations: 4 kB / 370.3 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1675/0.2824, allocations: 1.824 MB / 372.1 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.2825, allocations: 0.75 kB / 372.1 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007692/0.2832, allocations: 0.5073 MB / 372.6 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.743e-05/0.2833, allocations: 107.4 kB / 372.7 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.572e-05/0.2834, allocations: 8.547 kB / 372.7 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001592/0.2835, allocations: 13.33 kB / 372.7 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.526e-05/0.2836, allocations: 26.83 kB / 372.8 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.2836, allocations: 9.609 kB / 372.8 MB, free: 18.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001385/0.2838, allocations: 151 kB / 372.9 MB, free: 18.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2838, allocations: 3.656 kB / 372.9 MB, free: 18.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004415/0.2842, allocations: 104.3 kB / 373 MB, free: 18.02 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.0009049/0.2851, allocations: 1.039 MB / 374.1 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004178/0.2856, allocations: 214.7 kB / 374.3 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2856, allocations: 0 / 374.3 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000424/0.286, allocations: 277.1 kB / 374.6 MB, free: 17.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003724/0.2864, allocations: 33.34 kB / 374.6 MB, free: 17.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002535/0.2889, allocations: 1.914 MB / 376.5 MB, free: 16.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002105/0.2892, allocations: 0.7849 MB / 377.3 MB, free: 15.6 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001041/0.2893, allocations: 25.95 kB / 377.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.2894, allocations: 103.3 kB / 377.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2894, allocations: 1.375 kB / 377.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01821/0.3076, allocations: 5.312 MB / 382.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001925/0.3079, allocations: 212.4 kB / 382.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.917/2.225, allocations: 0 / 382.9 MB, free: 14.93 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_CoupledInductors_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_CoupledInductors.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat does not exist to compare? outputFormat=mat