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.001027/0.001028, allocations: 93.73 kB / 16.3 MB, free: 5.996 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.001539/0.00154, allocations: 184.6 kB / 17.2 MB, free: 5.914 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.314/1.314, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002818/0.000282, allocations: 5.375 kB / 300.8 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08885/0.08915, allocations: 50.42 MB / 351.2 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.002563/0.09176, allocations: 2.232 MB / 353.5 MB, free: 9.387 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001093/0.09291, allocations: 0.7016 MB / 354.2 MB, free: 8.68 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.09304, allocations: 8 kB / 354.2 MB, free: 8.672 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.559e-05/0.09313, allocations: 47.61 kB / 354.2 MB, free: 8.625 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001716/0.09331, allocations: 91.78 kB / 354.3 MB, free: 8.535 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002635/0.09358, allocations: 91.83 kB / 354.4 MB, free: 8.445 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003033/0.09389, allocations: 295.9 kB / 354.7 MB, free: 8.156 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002387/0.09414, allocations: 166.1 kB / 354.8 MB, free: 7.984 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000158/0.0943, allocations: 143.5 kB / 355 MB, free: 7.844 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001926/0.0945, allocations: 167.3 kB / 355.2 MB, free: 7.68 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.048e-05/0.09455, allocations: 24 kB / 355.2 MB, free: 7.656 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.864e-05/0.09461, allocations: 28 kB / 355.2 MB, free: 7.629 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.102e-05/0.09467, allocations: 71.73 kB / 355.3 MB, free: 7.559 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.53e-05/0.09476, allocations: 97.45 kB / 355.4 MB, free: 7.457 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002995/0.09506, allocations: 370.9 kB / 355.7 MB, free: 7.094 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.09507, allocations: 0 / 355.7 MB, free: 7.094 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.09508, allocations: 4 kB / 355.7 MB, free: 7.09 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.0951, allocations: 0 / 355.7 MB, free: 7.09 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.0009931/0.09609, allocations: 0.62 MB / 356.4 MB, free: 6.422 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.09615, allocations: 8.031 kB / 356.4 MB, free: 6.414 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.31e-05/0.09624, allocations: 78.52 kB / 356.4 MB, free: 6.328 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.493e-05/0.09633, allocations: 47.53 kB / 356.5 MB, free: 6.281 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003035/0.09664, allocations: 271.2 kB / 356.7 MB, free: 5.973 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.09668, allocations: 29 kB / 356.8 MB, free: 5.945 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.085e-05/0.09676, allocations: 51.94 kB / 356.8 MB, free: 5.895 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007326/0.0975, allocations: 451.2 kB / 357.3 MB, free: 5.426 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.09753, allocations: 7.984 kB / 357.3 MB, free: 5.418 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.611e-05/0.09758, allocations: 19.95 kB / 357.3 MB, free: 5.398 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.0976, allocations: 11.94 kB / 357.3 MB, free: 5.387 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005082/0.09812, allocations: 279.9 kB / 357.6 MB, free: 5.109 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001736/0.09986, allocations: 1.322 MB / 358.9 MB, free: 3.699 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003914/0.1003, allocations: 247.6 kB / 359.1 MB, free: 3.449 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.1003, allocations: 4 kB / 359.1 MB, free: 3.445 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.1003, allocations: 42.55 kB / 359.2 MB, free: 3.395 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.503e-06/0.1003, allocations: 0 / 359.2 MB, free: 3.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001371/0.1017, allocations: 0.558 MB / 359.7 MB, free: 2.809 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.1018, allocations: 239.3 kB / 360 MB, free: 2.52 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001841/0.102, allocations: 203 kB / 360.2 MB, free: 2.309 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.83e-05/0.1021, allocations: 33.7 kB / 360.2 MB, free: 2.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.1022, allocations: 200.2 kB / 360.4 MB, free: 2.07 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.45e-05/0.1023, allocations: 94.56 kB / 360.5 MB, free: 1.977 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.384e-05/0.1023, allocations: 8 kB / 360.5 MB, free: 1.969 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.1024, allocations: 334.8 kB / 360.8 MB, free: 1.633 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.1025, allocations: 79.97 kB / 360.9 MB, free: 1.555 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001927/0.1027, allocations: 159.6 kB / 361.1 MB, free: 1.371 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00018/0.1029, allocations: 108.7 kB / 361.2 MB, free: 1.266 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.1029, allocations: 0 / 361.2 MB, free: 1.266 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004176/0.1034, allocations: 277 kB / 361.4 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.1034, allocations: 8 kB / 361.5 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.1034, allocations: 0 / 361.5 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.1034, allocations: 0 / 361.5 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003306/0.1038, allocations: 79.89 kB / 361.5 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.592e-05/0.1038, allocations: 7.984 kB / 361.5 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001696/0.104, allocations: 35.69 kB / 361.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/0.104, allocations: 11.94 kB / 361.6 MB, free: 0.8477 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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.0001381/0.1041, allocations: 157.7 kB / 361.7 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.491e-05/0.1042, allocations: 19.81 kB / 361.8 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.588e-05/0.1043, allocations: 38.64 kB / 361.8 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.1043, allocations: 0 / 361.8 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.1043, allocations: 4 kB / 361.8 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.1043, allocations: 0 / 361.8 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004088/0.1047, allocations: 409.1 kB / 362.2 MB, free: 172 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1047, allocations: 0 / 362.2 MB, free: 172 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002736/0.105, allocations: 55.91 kB / 362.3 MB, free: 116 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003351/0.1053, allocations: 92.73 kB / 362.3 MB, free: 20 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.735e-05/0.1054, allocations: 7.938 kB / 362.4 MB, free: 12 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001722/0.1071, allocations: 1.855 MB / 364.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.1071, allocations: 4 kB / 364.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007536/0.1079, allocations: 0.5248 MB / 364.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.161e-05/0.1079, allocations: 100.8 kB / 364.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.701e-05/0.108, allocations: 8.172 kB / 364.8 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001607/0.1082, allocations: 15.94 kB / 364.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.593e-05/0.1082, allocations: 27.95 kB / 364.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.495e-05/0.1082, allocations: 8 kB / 364.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001194/0.1084, allocations: 148.6 kB / 365 MB, free: 13.15 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1084, allocations: 0 / 365 MB, free: 13.15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003944/0.1088, allocations: 103.6 kB / 365.1 MB, free: 13.05 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0009889/0.1098, allocations: 1.053 MB / 366.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003939/0.1102, allocations: 219.9 kB / 366.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1102, allocations: 64 / 366.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004081/0.1106, allocations: 286.5 kB / 366.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.1109, allocations: 23.98 kB / 366.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002464/0.1134, allocations: 2.07 MB / 368.8 MB, free: 9.316 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003284/0.1137, allocations: 0.7911 MB / 369.6 MB, free: 8.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001026/0.1138, allocations: 25.94 kB / 369.6 MB, free: 8.473 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001371/0.114, allocations: 107.4 kB / 369.7 MB, free: 8.371 MB / 302.1 MB Notification: Performance of SimCode: time 2.013e-06/0.114, allocations: 0 / 369.7 MB, free: 8.371 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01762/0.1316, allocations: 5.345 MB / 375 MB, free: 3.195 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002173/0.1319, allocations: 204.7 kB / 375.2 MB, free: 2.957 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.753/1.885, allocations: 0 / 375.2 MB, free: 2.957 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