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.001107/0.001107, allocations: 92.48 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 199 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002181/0.0002184, allocations: 8 kB / 306.7 MB, free: 1.285 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09763/0.09787, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.002844/0.1008, allocations: 2.242 MB / 360.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001262/0.102, allocations: 0.7483 MB / 361.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001037/0.1022, allocations: 8 kB / 361.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.245e-05/0.1023, allocations: 51.66 kB / 361.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002075/0.1025, allocations: 95.72 kB / 361.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002995/0.1028, allocations: 91.89 kB / 361.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003273/0.1031, allocations: 299.8 kB / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002725/0.1034, allocations: 158.3 kB / 361.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002258/0.1036, allocations: 143.5 kB / 362 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002192/0.1039, allocations: 175.2 kB / 362.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.483e-05/0.1039, allocations: 24 kB / 362.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.675e-05/0.104, allocations: 32 kB / 362.2 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.571e-05/0.1041, allocations: 67.75 kB / 362.3 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.153e-05/0.1042, allocations: 93.52 kB / 362.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003759/0.1046, allocations: 383.1 kB / 362.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1046, allocations: 0 / 362.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1046, allocations: 0 / 362.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.1046, allocations: 0 / 362.8 MB, free: 9.18 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.001032/0.1056, allocations: 0.6285 MB / 363.4 MB, free: 8.504 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.1057, allocations: 8.031 kB / 363.4 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.235e-05/0.1058, allocations: 82.53 kB / 363.5 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002392/0.106, allocations: 59.52 kB / 363.5 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002891/0.1063, allocations: 271.2 kB / 363.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.147e-05/0.1064, allocations: 40.95 kB / 363.8 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.093e-05/0.1064, allocations: 40 kB / 363.9 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006464/0.1071, allocations: 447.2 kB / 364.3 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.1071, allocations: 3.938 kB / 364.3 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.632e-05/0.1071, allocations: 16 kB / 364.3 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.774e-05/0.1072, allocations: 12 kB / 364.4 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004877/0.1077, allocations: 283.9 kB / 364.6 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001825/0.1095, allocations: 1.322 MB / 366 MB, free: 5.777 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004101/0.1099, allocations: 246 kB / 366.2 MB, free: 5.531 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.11, allocations: 8 kB / 366.2 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.325e-05/0.11, allocations: 34.56 kB / 366.2 MB, free: 5.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.532e-06/0.11, allocations: 4 kB / 366.2 MB, free: 5.477 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001361/0.1114, allocations: 0.5541 MB / 366.8 MB, free: 4.895 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/0.1115, allocations: 239.3 kB / 367 MB, free: 4.605 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/0.1117, allocations: 203 kB / 367.2 MB, free: 4.398 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.988e-05/0.1117, allocations: 37.7 kB / 367.3 MB, free: 4.355 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.1118, allocations: 196.2 kB / 367.5 MB, free: 4.156 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.776e-05/0.1119, allocations: 106.5 kB / 367.6 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.346e-05/0.1119, allocations: 4 kB / 367.6 MB, free: 4.047 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1121, allocations: 334.8 kB / 367.9 MB, free: 3.711 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.1122, allocations: 87.7 kB / 368 MB, free: 3.625 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002066/0.1125, allocations: 147.7 kB / 368.1 MB, free: 3.453 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001861/0.1126, allocations: 116.9 kB / 368.2 MB, free: 3.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.1127, allocations: 0 / 368.2 MB, free: 3.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004438/0.1131, allocations: 288.7 kB / 368.5 MB, free: 3.051 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.1131, allocations: 4 kB / 368.5 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.1131, allocations: 0 / 368.5 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.1132, allocations: 0 / 368.5 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003302/0.1135, allocations: 83.89 kB / 368.6 MB, free: 2.965 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.1135, allocations: 11.98 kB / 368.6 MB, free: 2.953 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001594/0.1137, allocations: 31.62 kB / 368.6 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.1137, allocations: 12 kB / 368.7 MB, free: 2.91 MB / 302.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.0001593/0.1139, allocations: 153.8 kB / 368.8 MB, free: 2.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.681e-05/0.1139, allocations: 23.81 kB / 368.8 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.718e-05/0.114, allocations: 26.66 kB / 368.9 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.114, allocations: 0 / 368.9 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.114, allocations: 4 kB / 368.9 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.493e-06/0.114, allocations: 11.94 kB / 368.9 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004365/0.1145, allocations: 397 kB / 369.3 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1145, allocations: 0 / 369.3 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002597/0.1148, allocations: 51.95 kB / 369.3 MB, free: 2.191 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002993/0.1151, allocations: 84.81 kB / 369.4 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.1151, allocations: 4 kB / 369.4 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001795/0.1169, allocations: 1.878 MB / 371.3 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1169, allocations: 8 kB / 371.3 MB, free: 88 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1742/0.2911, allocations: 0.5073 MB / 371.8 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.489e-05/0.2912, allocations: 102.5 kB / 371.9 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.882e-05/0.2913, allocations: 6.516 kB / 371.9 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/0.2914, allocations: 18.92 kB / 371.9 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.134e-05/0.2915, allocations: 23.72 kB / 371.9 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.776e-05/0.2916, allocations: 6.312 kB / 371.9 MB, free: 19.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001241/0.2917, allocations: 151.2 kB / 372.1 MB, free: 18.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2917, allocations: 0 / 372.1 MB, free: 18.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004096/0.2921, allocations: 103.5 kB / 372.2 MB, free: 18.98 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.0008998/0.293, allocations: 1.054 MB / 373.2 MB, free: 18.31 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003974/0.2934, allocations: 222.5 kB / 373.5 MB, free: 18.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.2934, allocations: 1.625 kB / 373.5 MB, free: 18.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003937/0.2938, allocations: 283.4 kB / 373.7 MB, free: 18.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.2941, allocations: 28.19 kB / 373.8 MB, free: 18.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002578/0.2967, allocations: 2.057 MB / 375.8 MB, free: 17.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002117/0.2969, allocations: 0.7942 MB / 376.6 MB, free: 16.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.297, allocations: 32.97 kB / 376.7 MB, free: 16.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.2972, allocations: 104.3 kB / 376.8 MB, free: 16.44 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2972, allocations: 0 / 376.8 MB, free: 16.44 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01693/0.3141, allocations: 5.339 MB / 382.1 MB, free: 16.03 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001325/0.3143, allocations: 203.5 kB / 382.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.925/2.239, allocations: 1.406 kB / 382.3 MB, free: 15.79 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