Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00112/0.001121, allocations: 95.94 kB / 17 MB, free: 6.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001354/0.001354, allocations: 191.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.4 MB / 246 MB, free: 10.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002541/0.0002542, allocations: 4 kB / 306.8 MB, free: 1.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1268, allocations: 51.5 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2873/0.4142, allocations: 27.16 MB / 385.5 MB, free: 7.547 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02174/0.436, allocations: 8.25 MB / 393.7 MB, free: 1.453 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009761/0.4458, allocations: 174.2 kB / 393.9 MB, free: 1.422 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007853/0.4536, allocations: 1.262 MB / 395.2 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01315/0.4668, allocations: 2.447 MB / 397.6 MB, free: 15.3 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00528/0.4721, allocations: 1.087 MB / 398.7 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02499/0.4972, allocations: 10.07 MB / 408.8 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02478/0.5221, allocations: 9.997 MB / 418.8 MB, free: 252 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01011/0.5322, allocations: 3.145 MB / 421.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01061/0.5429, allocations: 3.642 MB / 425.6 MB, free: 9.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003376/0.5463, allocations: 480 kB / 426 MB, free: 8.961 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006003/0.5524, allocations: 0.8199 MB / 426.8 MB, free: 8.141 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003737/0.5561, allocations: 1.565 MB / 428.4 MB, free: 6.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005866/0.562, allocations: 1.596 MB / 430 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02318/0.5852, allocations: 13.21 MB / 443.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.022e-05/0.5853, allocations: 0 / 443.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.025e-06/0.5853, allocations: 0 / 443.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005431/0.5859, allocations: 0 / 443.2 MB, free: 7.715 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.02591/0.6118, allocations: 8.296 MB / 451.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.274e-05/0.6119, allocations: 12.03 kB / 451.5 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005443/0.6173, allocations: 1.152 MB / 452.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02858/0.6459, allocations: 5.269 MB / 458 MB, free: 8.863 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01207/0.658, allocations: 4.9 MB / 462.8 MB, free: 3.883 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006011/0.6587, allocations: 0.53 MB / 463.4 MB, free: 3.352 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003326/0.662, allocations: 0.7108 MB / 464.1 MB, free: 2.641 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03528/0.6973, allocations: 11.27 MB / 475.4 MB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005861/0.6979, allocations: 15.77 kB / 475.4 MB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003788/0.7017, allocations: 300 kB / 475.7 MB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006757/0.7024, allocations: 447 kB / 476.1 MB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02799/0.7305, allocations: 10.78 MB / 486.9 MB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0848/0.8153, allocations: 38.99 MB / 0.5135 GB, free: 3.461 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2875/1.103, allocations: 28.24 MB / 0.5411 GB, free: 119.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006232/1.109, allocations: 2.661 MB / 0.5437 GB, free: 119.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01685/1.126, allocations: 8.456 MB / 0.552 GB, free: 116 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.418e-05/1.126, allocations: 57.3 kB / 0.552 GB, free: 115.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 4.378e-06/1.126, allocations: 0 / 0.552 GB, free: 115.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.0261/1.152, allocations: 11.07 MB / 0.5628 GB, free: 111.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001788/1.154, allocations: 1.91 MB / 0.5647 GB, free: 109.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006029/1.16, allocations: 3.806 MB / 0.5684 GB, free: 108.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004448/1.161, allocations: 66.58 kB / 0.5685 GB, free: 108.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002358/1.163, allocations: 3.557 MB / 0.572 GB, free: 105.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009519/1.164, allocations: 0.8345 MB / 0.5728 GB, free: 104.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002114/1.164, allocations: 99.84 kB / 0.5729 GB, free: 104.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000213/1.164, allocations: 0.4901 MB / 0.5734 GB, free: 104.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002484/1.167, allocations: 1.873 MB / 0.5752 GB, free: 103.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003308/1.17, allocations: 4.38 MB / 0.5795 GB, free: 99.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003343/1.174, allocations: 2.813 MB / 0.5822 GB, free: 98.17 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.864e-05/1.174, allocations: 27.12 kB / 0.5822 GB, free: 98.17 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01096/1.185, allocations: 6.95 MB / 0.589 GB, free: 95.29 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.987e-05/1.185, allocations: 44.95 kB / 0.5891 GB, free: 95.29 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001115/1.185, allocations: 87.25 kB / 0.5891 GB, free: 95.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001676/1.186, allocations: 0.7482 MB / 0.5899 GB, free: 95.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003084/1.19, allocations: 1.122 MB / 0.591 GB, free: 94.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005454/1.195, allocations: 5.224 MB / 0.5961 GB, free: 89.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00412/1.199, allocations: 311.1 kB / 0.5964 GB, free: 88.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000558/1.2, allocations: 276 kB / 0.5966 GB, free: 88.54 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004411/1.204, allocations: 2.518 MB / 0.5991 GB, free: 86.01 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009477/1.205, allocations: 391.2 kB / 0.5995 GB, free: 85.62 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006332/1.211, allocations: 4.26 MB / 0.6036 GB, free: 81.34 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.686e-05/1.211, allocations: 24 kB / 0.6037 GB, free: 81.31 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.487e-06/1.212, allocations: 8 kB / 0.6037 GB, free: 81.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.192e-05/1.212, allocations: 15.91 kB / 0.6037 GB, free: 81.29 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01922/1.231, allocations: 14.28 MB / 0.6176 GB, free: 66.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.646e-05/1.231, allocations: 16.2 kB / 0.6176 GB, free: 66.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001546/1.232, allocations: 485 kB / 0.6181 GB, free: 66.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001667/1.234, allocations: 0.6896 MB / 0.6188 GB, free: 65.62 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001628/1.234, allocations: 75.83 kB / 0.6188 GB, free: 65.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006665/1.241, allocations: 6.933 MB / 0.6256 GB, free: 58.35 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001267/1.242, allocations: 1.859 MB / 0.6274 GB, free: 56.35 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009048/1.251, allocations: 6.718 MB / 0.634 GB, free: 49.35 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002257/1.254, allocations: 0.7928 MB / 0.6348 GB, free: 48.53 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006136/1.254, allocations: 63.98 kB / 0.6348 GB, free: 48.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00156/1.256, allocations: 167.9 kB / 0.635 GB, free: 48.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003707/1.256, allocations: 224.5 kB / 0.6352 GB, free: 48.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000146/1.256, allocations: 87.98 kB / 0.6353 GB, free: 48 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003456/1.26, allocations: 2.49 MB / 0.6377 GB, free: 45.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/1.26, allocations: 0 / 0.6377 GB, free: 45.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005567/1.265, allocations: 1.31 MB / 0.639 GB, free: 44.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * 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 (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 32} * Non-linear torn systems: 1 {3 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.009708/1.275, allocations: 7.403 MB / 0.6462 GB, free: 36.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00746/1.283, allocations: 5.099 MB / 0.6512 GB, free: 31.35 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/1.283, allocations: 4 kB / 0.6512 GB, free: 31.35 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003177/1.286, allocations: 2.394 MB / 0.6535 GB, free: 28.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004951/1.291, allocations: 0.972 MB / 0.6545 GB, free: 27.98 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07424/1.365, allocations: 38.58 MB / 0.6922 GB, free: 2.254 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006477/1.372, allocations: 4.503 MB / 0.6966 GB, free: 13.71 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005163/1.377, allocations: 1.403 MB / 0.6979 GB, free: 12.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004487/1.381, allocations: 2.546 MB / 0.7004 GB, free: 9.758 MB / 478.1 MB Notification: Performance of SimCode: time 1.994e-06/1.381, allocations: 0 / 0.7004 GB, free: 9.758 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4207/1.802, allocations: 101.7 MB / 0.7997 GB, free: 87.03 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002309/1.802, allocations: 289.4 kB / 0.8 GB, free: 86.67 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.128/5.931, allocations: 0 / 0.8 GB, free: 86.67 MB / 478.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat does not exist to compare? outputFormat=mat