Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001046/0.001046, allocations: 94.72 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009383/0.0009383, allocations: 192.6 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000238/0.000238, allocations: 4 kB / 306.8 MB, free: 1.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1142, allocations: 51.51 MB / 358.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.006575/0.1208, allocations: 5.734 MB / 364.1 MB, free: 8.211 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004521/0.1253, allocations: 2.22 MB / 366.3 MB, free: 5.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004821/0.1258, allocations: 24 kB / 366.3 MB, free: 5.957 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007782/0.1266, allocations: 270.5 kB / 366.6 MB, free: 5.691 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001403/0.128, allocations: 461.6 kB / 367 MB, free: 5.238 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002229/0.1303, allocations: 1.081 MB / 368.1 MB, free: 4.168 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001312/0.1316, allocations: 1.031 MB / 369.1 MB, free: 3.129 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002784/0.1344, allocations: 1.57 MB / 370.7 MB, free: 1.527 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005976/0.135, allocations: 402.4 kB / 371.1 MB, free: 1.133 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005683/0.1356, allocations: 0.5252 MB / 371.6 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.473e-05/0.1357, allocations: 48 kB / 371.7 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009407/0.1366, allocations: 379.6 kB / 372 MB, free: 192 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001633/0.1368, allocations: 187.1 kB / 372.2 MB, free: 4 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2145/0.3513, allocations: 210.8 kB / 372.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002588/0.3539, allocations: 1.245 MB / 373.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.3539, allocations: 0.5625 kB / 373.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3539, allocations: 0 / 373.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.051e-05/0.354, allocations: 0 / 373.7 MB, free: 10.06 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: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.006595/0.3606, allocations: 1.855 MB / 375.5 MB, free: 9.375 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.3606, allocations: 8.688 kB / 375.5 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004067/0.361, allocations: 186.6 kB / 375.7 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003668/0.3647, allocations: 0.5152 MB / 376.2 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004867/0.3652, allocations: 305.3 kB / 376.5 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001667/0.3654, allocations: 97.42 kB / 376.6 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003899/0.3658, allocations: 130.2 kB / 376.7 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002749/0.3686, allocations: 1.306 MB / 378.1 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.988e-05/0.3686, allocations: 7.297 kB / 378.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001129/0.3687, allocations: 51.56 kB / 378.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.236e-05/0.3688, allocations: 32.08 kB / 378.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002601/0.3714, allocations: 1.217 MB / 379.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006773/0.3782, allocations: 4.327 MB / 383.7 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002249/0.3805, allocations: 2.443 MB / 386.1 MB, free: 5.922 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009653/0.3814, allocations: 0.51 MB / 386.6 MB, free: 5.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001973/0.3817, allocations: 192.8 kB / 386.8 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.3817, allocations: 47.16 kB / 386.9 MB, free: 5.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=122): time 2.876e-06/0.3817, allocations: 0 / 386.9 MB, free: 5.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.01175/0.3935, allocations: 4.039 MB / 390.9 MB, free: 4.598 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.3936, allocations: 91.19 kB / 391 MB, free: 4.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005523/0.3941, allocations: 396.3 kB / 391.4 MB, free: 4.285 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.458e-05/0.3942, allocations: 46.36 kB / 391.4 MB, free: 4.238 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002677/0.3945, allocations: 448 kB / 391.9 MB, free: 3.844 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003208/0.3948, allocations: 427.1 kB / 392.3 MB, free: 3.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.074e-05/0.3949, allocations: 25.5 kB / 392.3 MB, free: 3.461 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.379e-05/0.395, allocations: 380.3 kB / 392.7 MB, free: 3.094 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/0.396, allocations: 451 kB / 393.1 MB, free: 2.891 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/0.3972, allocations: 0.7187 MB / 393.8 MB, free: 2.355 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001145/0.3984, allocations: 0.5362 MB / 394.4 MB, free: 2.102 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.3984, allocations: 2.75 kB / 394.4 MB, free: 2.102 MB / 302.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003374/0.4018, allocations: 1.498 MB / 395.9 MB, free: 1.414 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.306e-05/0.4018, allocations: 14.36 kB / 395.9 MB, free: 1.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/0.4019, allocations: 6.312 kB / 395.9 MB, free: 1.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000548/0.4024, allocations: 202 kB / 396.1 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/0.4035, allocations: 305.7 kB / 396.4 MB, free: 1.258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004073/0.4076, allocations: 3.964 MB / 400.4 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/0.4088, allocations: 91.67 kB / 400.5 MB, free: 13.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/0.4089, allocations: 57.14 kB / 400.5 MB, free: 13.64 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (146): * Single equations (assignments): 144 * 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%) 12,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005912/0.4095, allocations: 270.6 kB / 400.8 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.4096, allocations: 62.06 kB / 400.8 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003073/0.4127, allocations: 1.399 MB / 402.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.4127, allocations: 16.41 kB / 402.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.4128, allocations: 3.781 kB / 402.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/0.4128, allocations: 7.969 kB / 402.3 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005107/0.4179, allocations: 2.666 MB / 404.9 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/0.4179, allocations: 0 / 404.9 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001108/0.419, allocations: 227.8 kB / 405.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004466/0.4195, allocations: 159.9 kB / 405.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.875e-05/0.4196, allocations: 27.98 kB / 405.3 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003647/0.4232, allocations: 3.784 MB / 409.1 MB, free: 6.188 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.4233, allocations: 0 / 409.1 MB, free: 6.188 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003974/0.4272, allocations: 1.935 MB / 411 MB, free: 4.238 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004355/0.4277, allocations: 228.2 kB / 411.3 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.4278, allocations: 24 kB / 411.3 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000667/0.4285, allocations: 72.02 kB / 411.4 MB, free: 3.902 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001951/0.4287, allocations: 91.67 kB / 411.5 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.366e-05/0.4288, allocations: 39.98 kB / 411.5 MB, free: 3.773 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003161/0.4291, allocations: 263.2 kB / 411.8 MB, free: 3.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4291, allocations: 4 kB / 411.8 MB, free: 3.516 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001233/0.4303, allocations: 308.1 kB / 412.1 MB, free: 3.215 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (106): * Single equations (assignments): 104 * 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%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004361/0.4347, allocations: 2.551 MB / 414.6 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003472/0.4382, allocations: 1.491 MB / 416.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/0.4382, allocations: 0 / 416.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001682/0.4399, allocations: 0.8889 MB / 417 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007576/0.4407, allocations: 73.64 kB / 417.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01088/0.4516, allocations: 5.312 MB / 422.4 MB, free: 8.766 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008328/0.4525, allocations: 1.017 MB / 423.4 MB, free: 7.719 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008381/0.4533, allocations: 150.6 kB / 423.5 MB, free: 7.566 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005365/0.4539, allocations: 343.3 kB / 423.9 MB, free: 7.23 MB / 334.1 MB Notification: Performance of SimCode: time 1.283e-06/0.4539, allocations: 4 kB / 423.9 MB, free: 7.227 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0392/0.4931, allocations: 15.93 MB / 439.8 MB, free: 7.594 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002234/0.4934, allocations: 250.8 kB / 440 MB, free: 7.285 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.276/2.769, allocations: 3.938 kB / 440 MB, free: 7.281 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat does not exist to compare? outputFormat=mat