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.001314/0.001314, allocations: 95.62 kB / 16.93 MB, free: 5.984 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.001106/0.001106, allocations: 180.8 kB / 17.82 MB, free: 5.652 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.359/1.359, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004413/0.0004413, allocations: 8 kB / 280.8 MB, free: 3.66 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08558/0.08603, allocations: 47.58 MB / 328.4 MB, free: 4.016 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.002318/0.08838, allocations: 2.188 MB / 330.6 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009637/0.08936, allocations: 0.7414 MB / 331.3 MB, free: 1.066 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.148e-05/0.08946, allocations: 8 kB / 331.3 MB, free: 1.059 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 6.854e-05/0.08954, allocations: 43.67 kB / 331.4 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001576/0.08971, allocations: 95.66 kB / 331.5 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002629/0.08997, allocations: 91.83 kB / 331.6 MB, free: 0.832 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002941/0.09028, allocations: 288 kB / 331.9 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002509/0.09054, allocations: 162.3 kB / 332 MB, free: 396 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000156/0.0907, allocations: 135.5 kB / 332.1 MB, free: 260 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.09089, allocations: 167.2 kB / 332.3 MB, free: 92 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.729e-05/0.09093, allocations: 24 kB / 332.3 MB, free: 68 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.707e-05/0.09099, allocations: 24 kB / 332.4 MB, free: 44 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.34e-05/0.09107, allocations: 71.73 kB / 332.4 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.225e-05/0.09114, allocations: 97.52 kB / 332.5 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003187/0.09147, allocations: 375.1 kB / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.09148, allocations: 0 / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.09149, allocations: 0 / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.595e-06/0.0915, allocations: 0 / 332.9 MB, free: 15.5 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.0008936/0.0924, allocations: 0.6161 MB / 333.5 MB, free: 14.84 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.09245, allocations: 12.03 kB / 333.5 MB, free: 14.83 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.853e-05/0.09253, allocations: 82.52 kB / 333.6 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.838e-05/0.09261, allocations: 47.53 kB / 333.6 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002992/0.09291, allocations: 283 kB / 333.9 MB, free: 14.37 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.572e-05/0.09295, allocations: 33 kB / 334 MB, free: 14.34 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.087e-05/0.09301, allocations: 40 kB / 334 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006503/0.09367, allocations: 451.2 kB / 334.4 MB, free: 13.83 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.0937, allocations: 0 / 334.4 MB, free: 13.83 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.491e-05/0.09374, allocations: 16 kB / 334.4 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.09375, allocations: 12 kB / 334.5 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004705/0.09423, allocations: 283.9 kB / 334.7 MB, free: 13.53 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001674/0.09591, allocations: 1.306 MB / 336 MB, free: 12.13 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004209/0.09635, allocations: 242.8 kB / 336.3 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.562e-05/0.09638, allocations: 11.94 kB / 336.3 MB, free: 11.88 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.312e-05/0.09641, allocations: 34.56 kB / 336.3 MB, free: 11.83 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.382e-06/0.09642, allocations: 4 kB / 336.3 MB, free: 11.83 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001288/0.09772, allocations: 0.547 MB / 336.9 MB, free: 11.25 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.09785, allocations: 247.3 kB / 337.1 MB, free: 10.96 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.09803, allocations: 206.8 kB / 337.3 MB, free: 10.74 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.403e-05/0.09807, allocations: 33.7 kB / 337.4 MB, free: 10.7 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/0.09821, allocations: 199.9 kB / 337.5 MB, free: 10.5 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.333e-05/0.09829, allocations: 98.55 kB / 337.6 MB, free: 10.4 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.256e-05/0.09831, allocations: 4 kB / 337.6 MB, free: 10.4 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.09844, allocations: 334.8 kB / 338 MB, free: 10.06 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000155/0.0986, allocations: 83.97 kB / 338.1 MB, free: 9.98 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001842/0.09879, allocations: 151.3 kB / 338.2 MB, free: 9.805 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001871/0.09899, allocations: 115.5 kB / 338.3 MB, free: 9.691 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.099, allocations: 0 / 338.3 MB, free: 9.691 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004184/0.09942, allocations: 277.4 kB / 338.6 MB, free: 9.414 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.09945, allocations: 4 kB / 338.6 MB, free: 9.41 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.09946, allocations: 0 / 338.6 MB, free: 9.41 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.09948, allocations: 7.953 kB / 338.6 MB, free: 9.402 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003245/0.09981, allocations: 83.89 kB / 338.7 MB, free: 9.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.09982, allocations: 8.016 kB / 338.7 MB, free: 9.312 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001624/0.09999, allocations: 31.69 kB / 338.7 MB, free: 9.281 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.207e-05/0.1, allocations: 12 kB / 338.7 MB, free: 9.27 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: 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.0002357/0.1003, allocations: 153.8 kB / 338.9 MB, free: 9.109 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.72e-05/0.1003, allocations: 23.81 kB / 338.9 MB, free: 9.086 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.94e-05/0.1004, allocations: 30.59 kB / 338.9 MB, free: 9.055 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-06/0.1004, allocations: 11.95 kB / 338.9 MB, free: 9.043 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.346e-05/0.1004, allocations: 4 kB / 339 MB, free: 9.039 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.1004, allocations: 7.922 kB / 339 MB, free: 9.031 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004086/0.1008, allocations: 397 kB / 339.3 MB, free: 8.594 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1008, allocations: 0 / 339.3 MB, free: 8.594 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002469/0.1011, allocations: 47.97 kB / 339.4 MB, free: 8.547 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002956/0.1014, allocations: 88.8 kB / 339.5 MB, free: 8.457 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.1014, allocations: 4 kB / 339.5 MB, free: 8.453 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001815/0.1033, allocations: 1.878 MB / 341.4 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.1033, allocations: 0 / 341.4 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006978/0.104, allocations: 0.5084 MB / 341.9 MB, free: 5.914 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.524e-05/0.1041, allocations: 100.8 kB / 342 MB, free: 5.797 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.436e-05/0.1041, allocations: 16.08 kB / 342 MB, free: 5.781 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001602/0.1043, allocations: 15.98 kB / 342 MB, free: 5.766 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.677e-05/0.1043, allocations: 19.97 kB / 342 MB, free: 5.746 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.1043, allocations: 8 kB / 342 MB, free: 5.738 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001267/0.1045, allocations: 156.3 kB / 342.2 MB, free: 5.586 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.684e-06/0.1045, allocations: 0 / 342.2 MB, free: 5.586 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003858/0.1049, allocations: 111.5 kB / 342.3 MB, free: 5.477 MB / 286.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.001139/0.106, allocations: 1.049 MB / 343.3 MB, free: 4.398 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004157/0.1064, allocations: 232.5 kB / 343.6 MB, free: 4.172 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1065, allocations: 3.938 kB / 343.6 MB, free: 4.168 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004443/0.1069, allocations: 282.5 kB / 343.8 MB, free: 3.879 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002044/0.1071, allocations: 16 kB / 343.9 MB, free: 3.863 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002758/0.1099, allocations: 2.066 MB / 345.9 MB, free: 1.742 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.1103, allocations: 0.7948 MB / 346.7 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.867e-05/0.1104, allocations: 21.94 kB / 346.7 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001299/0.1105, allocations: 99.41 kB / 346.8 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of SimCode: time 6.52e-07/0.1105, allocations: 0 / 346.8 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01672/0.1272, allocations: 5.16 MB / 352 MB, free: 11.65 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000177/0.1275, allocations: 205.9 kB / 352.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/1.91, allocations: 0 / 352.2 MB, free: 11.41 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