Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001751/0.001751, allocations: 202.8 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008985/0.0008984, allocations: 94.09 kB / 286.7 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.871e-05/1.865e-05, allocations: 4 kB / 343.8 MB, free: 8.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1054, allocations: 51.47 MB / 395.3 MB, free: 4.664 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3165/0.4219, allocations: 87.66 MB / 482.9 MB, free: 5.371 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001889/0.4221, allocations: 90.44 kB / 483 MB, free: 5.324 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05901/0.4811, allocations: 26.82 MB / 0.4979 GB, free: 15.47 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.136e-06/0.4811, allocations: 0 / 0.4979 GB, free: 15.47 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.892e-05/0.4812, allocations: 17.72 kB / 0.4979 GB, free: 15.46 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.003092/0.4843, allocations: 1.107 MB / 0.499 GB, free: 14.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.4843, allocations: 8.031 kB / 0.499 GB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002027/0.4864, allocations: 318.9 kB / 0.4993 GB, free: 13.99 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002635/0.4866, allocations: 259.5 kB / 0.4996 GB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.234e-05/0.4867, allocations: 24 kB / 0.4996 GB, free: 13.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.4868, allocations: 59.61 kB / 0.4996 GB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001187/0.488, allocations: 0.6522 MB / 0.5003 GB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/0.4892, allocations: 0.685 MB / 0.5009 GB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.617e-05/0.4893, allocations: 0 / 0.5009 GB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.846e-05/0.4893, allocations: 0 / 0.5009 GB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.218e-05/0.4894, allocations: 20 kB / 0.501 GB, free: 12.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004308/0.4937, allocations: 2.934 MB / 0.5038 GB, free: 9.129 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009356/0.4946, allocations: 0.938 MB / 0.5047 GB, free: 8.07 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002702/0.4949, allocations: 196.2 kB / 0.5049 GB, free: 7.879 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001621/0.4951, allocations: 178.7 kB / 0.5051 GB, free: 7.668 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.602e-05/0.4951, allocations: 39.12 kB / 0.5051 GB, free: 7.621 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 1.683e-06/0.4951, allocations: 0 / 0.5051 GB, free: 7.621 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.005855/0.501, allocations: 1.89 MB / 0.507 GB, free: 5.672 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.5011, allocations: 83.55 kB / 0.5071 GB, free: 5.574 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002641/0.5014, allocations: 250.1 kB / 0.5073 GB, free: 5.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.189e-05/0.5014, allocations: 29.7 kB / 0.5073 GB, free: 5.285 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002301/0.5016, allocations: 370.4 kB / 0.5077 GB, free: 4.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001611/0.5018, allocations: 205 kB / 0.5079 GB, free: 4.707 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.394e-05/0.5019, allocations: 0 / 0.5079 GB, free: 4.707 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.502, allocations: 346.8 kB / 0.5082 GB, free: 4.359 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003015/0.5023, allocations: 182.6 kB / 0.5084 GB, free: 4.184 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004516/0.5028, allocations: 425 kB / 0.5088 GB, free: 3.664 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/0.504, allocations: 405.8 kB / 0.5092 GB, free: 3.266 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.504, allocations: 4 kB / 0.5092 GB, free: 3.262 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001942/0.5059, allocations: 0.8362 MB / 0.51 GB, free: 2.414 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.506, allocations: 11.94 kB / 0.51 GB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.899e-05/0.506, allocations: 8 kB / 0.51 GB, free: 2.395 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002383/0.5062, allocations: 57.81 kB / 0.5101 GB, free: 2.332 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009113/0.5072, allocations: 219.7 kB / 0.5103 GB, free: 2.117 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002084/0.5093, allocations: 2.552 MB / 0.5128 GB, free: 15.33 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00069/0.51, allocations: 60 kB / 0.5128 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.481e-05/0.51, allocations: 38.09 kB / 0.5129 GB, free: 15.23 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001687/0.5102, allocations: 133.8 kB / 0.513 GB, free: 15.1 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001609/0.5118, allocations: 0.6359 MB / 0.5136 GB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.413e-05/0.5119, allocations: 35.53 kB / 0.5136 GB, free: 14.42 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001853/0.5138, allocations: 0.7275 MB / 0.5144 GB, free: 13.68 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.5138, allocations: 8 kB / 0.5144 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.5138, allocations: 4 kB / 0.5144 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.5138, allocations: 0 / 0.5144 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002522/0.5164, allocations: 1.294 MB / 0.5156 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.5164, allocations: 0 / 0.5156 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007152/0.5171, allocations: 159.7 kB / 0.5158 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001733/0.5173, allocations: 57.67 kB / 0.5158 GB, free: 12.1 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.566e-05/0.5173, allocations: 7.984 kB / 0.5158 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001854/0.5192, allocations: 2.533 MB / 0.5183 GB, free: 9.336 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.5192, allocations: 128 / 0.5183 GB, free: 9.336 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002082/0.5213, allocations: 0.9922 MB / 0.5193 GB, free: 8.32 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002112/0.5215, allocations: 164.6 kB / 0.5194 GB, free: 8.141 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.156e-05/0.5216, allocations: 0 / 0.5194 GB, free: 8.141 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005135/0.5221, allocations: 48.02 kB / 0.5195 GB, free: 8.094 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.5222, allocations: 48.48 kB / 0.5195 GB, free: 8.047 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.031e-05/0.5223, allocations: 23.98 kB / 0.5196 GB, free: 8.023 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001829/0.5225, allocations: 182 kB / 0.5197 GB, free: 7.844 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5225, allocations: 0 / 0.5197 GB, free: 7.844 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006937/0.5232, allocations: 164 kB / 0.5199 GB, free: 7.684 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSensor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00245/0.5256, allocations: 1.606 MB / 0.5215 GB, free: 6.051 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001083/0.5267, allocations: 0.725 MB / 0.5222 GB, free: 5.309 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.5268, allocations: 4.188 kB / 0.5222 GB, free: 5.305 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000535/0.5273, allocations: 469.5 kB / 0.5226 GB, free: 4.828 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002562/0.5276, allocations: 20.88 kB / 0.5226 GB, free: 4.805 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002286/0.5299, allocations: 0.9182 MB / 0.5235 GB, free: 3.848 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004434/0.5303, allocations: 0.9041 MB / 0.5244 GB, free: 2.914 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000486/0.5308, allocations: 86.17 kB / 0.5245 GB, free: 2.828 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003351/0.5312, allocations: 239.3 kB / 0.5247 GB, free: 2.594 MB / 394.7 MB Notification: Performance of SimCode: time 4.71e-07/0.5312, allocations: 0 / 0.5247 GB, free: 2.594 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02931/0.5605, allocations: 9.53 MB / 0.534 GB, free: 9.148 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002021/0.5607, allocations: 176.6 kB / 0.5342 GB, free: 8.961 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.405/2.966, allocations: 0 / 0.5342 GB, free: 8.961 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat does not exist to compare? outputFormat=mat