Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_3_2_3_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.001035/0.001035, allocations: 92.77 kB / 16.95 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.001331/0.00133, allocations: 176.2 kB / 17.84 MB, free: 5.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.51/1.51, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004521/0.0004522, allocations: 11.98 kB / 280.9 MB, free: 3.633 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09678/0.09725, allocations: 47.57 MB / 328.4 MB, free: 3.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.002866/0.1002, allocations: 2.319 MB / 330.8 MB, free: 1.656 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001323/0.1015, allocations: 0.714 MB / 331.5 MB, free: 0.9336 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.1017, allocations: 8 kB / 331.5 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.337e-05/0.1018, allocations: 47.67 kB / 331.5 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002003/0.102, allocations: 75.36 kB / 331.6 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004008/0.1024, allocations: 95.84 kB / 331.7 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004935/0.1029, allocations: 402.9 kB / 332.1 MB, free: 324 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003272/0.1032, allocations: 162.3 kB / 332.3 MB, free: 156 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001745/0.1034, allocations: 139.5 kB / 332.4 MB, free: 16 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002481/0.1037, allocations: 163.4 kB / 332.5 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.108e-05/0.1037, allocations: 24 kB / 332.6 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.954e-05/0.1038, allocations: 24 kB / 332.6 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.599e-05/0.1039, allocations: 63.77 kB / 332.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001075/0.104, allocations: 101.5 kB / 332.8 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000368/0.1043, allocations: 375.1 kB / 333.1 MB, free: 15.27 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.1044, allocations: 0 / 333.1 MB, free: 15.27 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1044, allocations: 4 kB / 333.1 MB, free: 15.27 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.1044, allocations: 3.828 kB / 333.1 MB, free: 15.27 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.001097/0.1055, allocations: 0.62 MB / 333.7 MB, free: 14.6 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.1055, allocations: 12.03 kB / 333.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.973e-05/0.1057, allocations: 78.53 kB / 333.8 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.376e-05/0.1057, allocations: 43.53 kB / 333.9 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003071/0.106, allocations: 279.1 kB / 334.2 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.934e-05/0.1061, allocations: 33 kB / 334.2 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.929e-05/0.1062, allocations: 40 kB / 334.2 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006814/0.1068, allocations: 451.2 kB / 334.7 MB, free: 13.6 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.1069, allocations: 0 / 334.7 MB, free: 13.6 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.383e-05/0.1069, allocations: 16 kB / 334.7 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.1069, allocations: 12 kB / 334.7 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004839/0.1074, allocations: 291.8 kB / 335 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001985/0.1094, allocations: 1.31 MB / 336.3 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000498/0.1099, allocations: 238.9 kB / 336.5 MB, free: 11.65 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003775/0.1103, allocations: 184.8 kB / 336.7 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.325e-05/0.1104, allocations: 7.984 kB / 336.7 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/0.1104, allocations: 42.56 kB / 336.8 MB, free: 11.41 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.563e-06/0.1104, allocations: 0 / 336.8 MB, free: 11.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001325/0.1118, allocations: 0.543 MB / 337.3 MB, free: 10.84 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000147/0.1119, allocations: 247.3 kB / 337.5 MB, free: 10.54 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002029/0.1121, allocations: 206.8 kB / 337.7 MB, free: 10.32 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/0.1122, allocations: 33.7 kB / 337.8 MB, free: 10.29 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001299/0.1123, allocations: 195.9 kB / 338 MB, free: 10.09 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.231e-05/0.1124, allocations: 106.5 kB / 338.1 MB, free: 9.98 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.168e-05/0.1124, allocations: 4 kB / 338.1 MB, free: 9.977 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1125, allocations: 334.8 kB / 338.4 MB, free: 9.641 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001427/0.1127, allocations: 79.95 kB / 338.5 MB, free: 9.562 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.1129, allocations: 160.4 kB / 338.6 MB, free: 9.375 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000189/0.1131, allocations: 100.8 kB / 338.7 MB, free: 9.277 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1131, allocations: 0 / 338.7 MB, free: 9.277 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004264/0.1135, allocations: 269 kB / 339 MB, free: 9.008 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.1136, allocations: 15.94 kB / 339 MB, free: 8.992 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1136, allocations: 0 / 339 MB, free: 8.992 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/0.1136, allocations: 4 kB / 339 MB, free: 8.988 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000298/0.1139, allocations: 79.97 kB / 339.1 MB, free: 8.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.1139, allocations: 11.92 kB / 339.1 MB, free: 8.898 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001567/0.1141, allocations: 31.69 kB / 339.1 MB, free: 8.867 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.079e-05/0.1141, allocations: 12 kB / 339.1 MB, free: 8.855 MB / 286.1 MB Warning: Assuming fixed start value for the following 2 variables: C2.vinternal:VARIABLE(unit = "V" fixed = true protected = true ) "Capacitor voltage" type: Real C1.vinternal:VARIABLE(unit = "V" fixed = true protected = true ) "Capacitor voltage" type: Real 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.0002399/0.1144, allocations: 153.8 kB / 339.3 MB, free: 8.695 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.657e-05/0.1144, allocations: 23.72 kB / 339.3 MB, free: 8.672 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.302e-05/0.1145, allocations: 34.61 kB / 339.4 MB, free: 8.637 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.1145, allocations: 4 kB / 339.4 MB, free: 8.633 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/0.1145, allocations: 8 kB / 339.4 MB, free: 8.625 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.1145, allocations: 3.984 kB / 339.4 MB, free: 8.621 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009877/0.1155, allocations: 0.7643 MB / 340.1 MB, free: 7.797 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.1156, allocations: 0 / 340.1 MB, free: 7.797 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000232/0.1158, allocations: 52 kB / 340.2 MB, free: 7.746 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003014/0.1161, allocations: 96.61 kB / 340.3 MB, free: 7.648 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.393e-05/0.1161, allocations: 11.98 kB / 340.3 MB, free: 7.637 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001803/0.1179, allocations: 1.827 MB / 342.1 MB, free: 5.676 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.118, allocations: 0 / 342.1 MB, free: 5.676 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007146/0.1187, allocations: 0.5248 MB / 342.6 MB, free: 5.129 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.254e-05/0.1188, allocations: 96.84 kB / 342.7 MB, free: 5.016 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.169e-05/0.1188, allocations: 8.062 kB / 342.7 MB, free: 5.008 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001475/0.119, allocations: 12 kB / 342.8 MB, free: 4.996 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.596e-05/0.119, allocations: 27.97 kB / 342.8 MB, free: 4.969 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.451e-05/0.119, allocations: 11.98 kB / 342.8 MB, free: 4.957 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001212/0.1192, allocations: 148.4 kB / 342.9 MB, free: 4.812 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1192, allocations: 3.938 kB / 342.9 MB, free: 4.809 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003611/0.1195, allocations: 111.6 kB / 343.1 MB, free: 4.699 MB / 286.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.0009734/0.1205, allocations: 1.034 MB / 344.1 MB, free: 3.633 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003785/0.1209, allocations: 224.3 kB / 344.3 MB, free: 3.414 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1209, allocations: 0 / 344.3 MB, free: 3.414 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004009/0.1213, allocations: 270.7 kB / 344.6 MB, free: 3.137 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/0.1216, allocations: 20 kB / 344.6 MB, free: 3.117 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002421/0.1241, allocations: 1.912 MB / 346.5 MB, free: 1.145 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.1244, allocations: 0.787 MB / 347.3 MB, free: 340 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.317e-05/0.1245, allocations: 21.94 kB / 347.3 MB, free: 316 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001299/0.1246, allocations: 103.3 kB / 347.4 MB, free: 212 kB / 286.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1246, allocations: 0 / 347.4 MB, free: 212 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01637/0.141, allocations: 5.149 MB / 352.6 MB, free: 11.06 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001847/0.1413, allocations: 215.1 kB / 352.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.076/2.217, allocations: 0 / 352.8 MB, free: 10.82 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CoupledInductors_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CoupledInductors.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat does not exist to compare? outputFormat=mat