Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008862/0.0008861, allocations: 99.48 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001076/0.001077, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002341/0.0002341, allocations: 7.984 kB / 306.8 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0996/0.09985, allocations: 51.5 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003273/0.1032, allocations: 2.381 MB / 360.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001245/0.1044, allocations: 0.7442 MB / 361.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000149/0.1046, allocations: 4 kB / 361.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001591/0.1048, allocations: 55.61 kB / 361.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002348/0.105, allocations: 75.44 kB / 361.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002241/0.1053, allocations: 75.86 kB / 361.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003282/0.1056, allocations: 362.5 kB / 362 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.1058, allocations: 105.8 kB / 362.1 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002292/0.106, allocations: 131.5 kB / 362.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001672/0.1062, allocations: 143.3 kB / 362.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.511e-05/0.1062, allocations: 20 kB / 362.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.907e-05/0.1063, allocations: 16 kB / 362.4 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.5e-05/0.1064, allocations: 63.75 kB / 362.5 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.342e-05/0.1064, allocations: 85.52 kB / 362.6 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002405/0.1067, allocations: 287.4 kB / 362.8 MB, free: 9.215 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1067, allocations: 0 / 362.8 MB, free: 9.215 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1067, allocations: 0 / 362.8 MB, free: 9.215 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.411e-06/0.1067, allocations: 0 / 362.8 MB, free: 9.215 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001064/0.1078, allocations: 0.603 MB / 363.4 MB, free: 8.566 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.1078, allocations: 8.031 kB / 363.4 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.273e-05/0.1079, allocations: 74.47 kB / 363.5 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.061e-05/0.108, allocations: 43.53 kB / 363.6 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003206/0.1083, allocations: 263.4 kB / 363.8 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.649e-05/0.1084, allocations: 28.59 kB / 363.8 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.266e-05/0.1084, allocations: 31.95 kB / 363.9 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005751/0.109, allocations: 290 kB / 364.2 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.109, allocations: 8 kB / 364.2 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.656e-05/0.1091, allocations: 12 kB / 364.2 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.1091, allocations: 8 kB / 364.2 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005627/0.1096, allocations: 266.5 kB / 364.4 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001523/0.1112, allocations: 1.128 MB / 365.6 MB, free: 6.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003407/0.1115, allocations: 158.5 kB / 365.7 MB, free: 6.105 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001718/0.1117, allocations: 72.81 kB / 365.8 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.513e-05/0.1118, allocations: 0 / 365.8 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.27e-05/0.1118, allocations: 38.56 kB / 365.8 MB, free: 5.984 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.112e-06/0.1118, allocations: 0 / 365.8 MB, free: 5.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.00187/0.1137, allocations: 0.6661 MB / 366.5 MB, free: 5.309 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.496e-05/0.1137, allocations: 55.59 kB / 366.6 MB, free: 5.242 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/0.114, allocations: 274.5 kB / 366.8 MB, free: 4.965 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.114, allocations: 37.64 kB / 366.9 MB, free: 4.922 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.1141, allocations: 219.5 kB / 367.1 MB, free: 4.703 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.139e-05/0.1142, allocations: 82.89 kB / 367.2 MB, free: 4.621 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.364e-05/0.1142, allocations: 4 kB / 367.2 MB, free: 4.617 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1144, allocations: 334.8 kB / 367.5 MB, free: 4.281 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002595/0.1146, allocations: 103.9 kB / 367.6 MB, free: 4.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003229/0.115, allocations: 211.9 kB / 367.8 MB, free: 3.926 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002815/0.1152, allocations: 125.1 kB / 367.9 MB, free: 3.805 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1153, allocations: 0 / 367.9 MB, free: 3.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007655/0.116, allocations: 419.3 kB / 368.3 MB, free: 3.387 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.1161, allocations: 7.938 kB / 368.3 MB, free: 3.379 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.1161, allocations: 4 kB / 368.3 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002304/0.1163, allocations: 61.8 kB / 368.4 MB, free: 3.309 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003171/0.1166, allocations: 75.89 kB / 368.5 MB, free: 3.234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001746/0.1184, allocations: 2.632 MB / 371.1 MB, free: 344 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002442/0.1186, allocations: 31.88 kB / 371.1 MB, free: 312 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.179e-05/0.1187, allocations: 16 kB / 371.2 MB, free: 296 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * 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.0001554/0.1188, allocations: 158.4 kB / 371.3 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.605e-05/0.1189, allocations: 23.72 kB / 371.3 MB, free: 104 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.742e-05/0.119, allocations: 34.17 kB / 371.4 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.119, allocations: 192 / 371.4 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.343e-06/0.119, allocations: 0 / 371.4 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.119, allocations: 7.984 kB / 371.4 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2283/0.3473, allocations: 325.7 kB / 371.7 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.3473, allocations: 1.438 kB / 371.7 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002939/0.3476, allocations: 48.36 kB / 371.7 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000216/0.3479, allocations: 56.14 kB / 371.8 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.07e-05/0.3479, allocations: 3.828 kB / 371.8 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001557/0.3495, allocations: 2.628 MB / 374.4 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3495, allocations: 0.6094 kB / 374.4 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000868/0.3504, allocations: 403 kB / 374.8 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.475e-05/0.3505, allocations: 100.8 kB / 374.9 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.114e-05/0.3505, allocations: 2.578 kB / 374.9 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/0.3507, allocations: 21.66 kB / 374.9 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.67e-05/0.3508, allocations: 22.42 kB / 375 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.7e-05/0.3508, allocations: 8.109 kB / 375 MB, free: 16.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000235/0.3511, allocations: 191.1 kB / 375.2 MB, free: 16.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3511, allocations: 0 / 375.2 MB, free: 16.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005217/0.3516, allocations: 73.72 kB / 375.2 MB, free: 16.33 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * 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.0009952/0.3526, allocations: 0.9341 MB / 376.2 MB, free: 15.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.3536, allocations: 499.5 kB / 376.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.3537, allocations: 0 / 376.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005177/0.3542, allocations: 357.4 kB / 377 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003926/0.3546, allocations: 32.89 kB / 377 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003337/0.3579, allocations: 1.728 MB / 378.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.3582, allocations: 0.7747 MB / 379.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001705/0.3584, allocations: 28.69 kB / 379.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001518/0.3586, allocations: 103.5 kB / 379.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3586, allocations: 0 / 379.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02189/0.3805, allocations: 5.008 MB / 384.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002186/0.3808, allocations: 231.5 kB / 384.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.88/2.26, allocations: 0 / 384.9 MB, free: 13.12 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat does not exist to compare? outputFormat=mat