Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.LinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008157/0.0008155, allocations: 101.8 kB / 17.01 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009264/0.0009263, allocations: 195.2 kB / 17.91 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002627/0.0002628, allocations: 4 kB / 306.8 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1007, allocations: 51.5 MB / 358.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.006692/0.1074, allocations: 5.617 MB / 363.9 MB, free: 8.117 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004644/0.1121, allocations: 2.338 MB / 366.3 MB, free: 5.773 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006246/0.1128, allocations: 19.94 kB / 366.3 MB, free: 5.754 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008469/0.1136, allocations: 270.5 kB / 366.6 MB, free: 5.488 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001471/0.1151, allocations: 445.7 kB / 367 MB, free: 5.051 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00207/0.1172, allocations: 1.011 MB / 368 MB, free: 4.043 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001256/0.1185, allocations: 0.9809 MB / 369 MB, free: 3.055 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002078/0.1205, allocations: 1.175 MB / 370.2 MB, free: 1.836 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005305/0.1211, allocations: 366.5 kB / 370.5 MB, free: 1.477 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005514/0.1216, allocations: 465.9 kB / 371 MB, free: 1.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.325e-05/0.1217, allocations: 48 kB / 371 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008716/0.1226, allocations: 351.6 kB / 371.4 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001615/0.1228, allocations: 171.2 kB / 371.5 MB, free: 472 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001861/0.123, allocations: 209.2 kB / 371.7 MB, free: 256 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2116/0.3346, allocations: 1.119 MB / 372.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.3347, allocations: 0.8125 kB / 372.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.115e-06/0.3347, allocations: 0 / 372.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4e-05/0.3347, allocations: 0 / 372.9 MB, free: 11.12 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.004249/0.339, allocations: 1.462 MB / 374.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.339, allocations: 9.656 kB / 374.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003597/0.3394, allocations: 173.3 kB / 374.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003192/0.3426, allocations: 0.4911 MB / 375 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007813/0.3434, allocations: 485.5 kB / 375.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.724e-05/0.3435, allocations: 87.31 kB / 375.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001692/0.3437, allocations: 114 kB / 375.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002004/0.3457, allocations: 0.9725 MB / 376.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.373e-05/0.3457, allocations: 3.953 kB / 376.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.633e-05/0.3458, allocations: 43.61 kB / 376.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.6e-05/0.3459, allocations: 30.34 kB / 376.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001829/0.3477, allocations: 0.9756 MB / 377.7 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005831/0.3535, allocations: 3.795 MB / 381.5 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001658/0.3552, allocations: 1.539 MB / 383 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006891/0.3559, allocations: 433.9 kB / 383.4 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001356/0.3561, allocations: 184.9 kB / 383.6 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008256/0.3569, allocations: 476.8 kB / 384.1 MB, free: 7.426 MB / 302.1 MB Notification: Performance of pre-optimization done (n=96): time 2.745e-06/0.3569, allocations: 1.188 kB / 384.1 MB, free: 7.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.00859/0.3655, allocations: 4.026 MB / 388.1 MB, free: 6.219 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.534e-05/0.3656, allocations: 149.4 kB / 388.3 MB, free: 6.055 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005029/0.3661, allocations: 399.1 kB / 388.6 MB, free: 5.852 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.24e-05/0.3662, allocations: 46.89 kB / 388.7 MB, free: 5.805 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000258/0.3665, allocations: 426 kB / 389.1 MB, free: 5.473 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002646/0.3667, allocations: 418.2 kB / 389.5 MB, free: 5.152 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.58e-05/0.3668, allocations: 26.22 kB / 389.5 MB, free: 5.133 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.3669, allocations: 381.3 kB / 389.9 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006575/0.3676, allocations: 353.4 kB / 390.3 MB, free: 4.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007437/0.3683, allocations: 0.5471 MB / 390.8 MB, free: 4.324 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000771/0.3691, allocations: 421.8 kB / 391.2 MB, free: 4.129 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.3691, allocations: 0 / 391.2 MB, free: 4.129 MB / 302.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002506/0.3716, allocations: 1.384 MB / 392.6 MB, free: 3.559 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.3717, allocations: 14.48 kB / 392.6 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.3717, allocations: 4.125 kB / 392.6 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008771/0.3726, allocations: 358.2 kB / 393 MB, free: 3.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007961/0.3734, allocations: 202.1 kB / 393.2 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007164/0.3806, allocations: 7.727 MB / 400.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009573/0.3816, allocations: 55.02 kB / 400.9 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.497e-05/0.3817, allocations: 41.22 kB / 401 MB, free: 12.48 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 19,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005652/0.3822, allocations: 256.4 kB / 401.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.3824, allocations: 72.06 kB / 401.3 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00238/0.3847, allocations: 1.308 MB / 402.6 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.3848, allocations: 12.91 kB / 402.6 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.3848, allocations: 7.938 kB / 402.6 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/0.3848, allocations: 7.938 kB / 402.6 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004142/0.3889, allocations: 2.548 MB / 405.2 MB, free: 9.836 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.389, allocations: 0 / 405.2 MB, free: 9.836 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006394/0.3896, allocations: 153.5 kB / 405.3 MB, free: 9.812 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007422/0.3904, allocations: 329.5 kB / 405.7 MB, free: 9.641 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.643e-05/0.3904, allocations: 28.95 kB / 405.7 MB, free: 9.621 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006704/0.3972, allocations: 7.428 MB / 413.1 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.3972, allocations: 4.734 kB / 413.1 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003123/0.4003, allocations: 1.817 MB / 414.9 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004319/0.4008, allocations: 223.9 kB / 415.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.4009, allocations: 24 kB / 415.2 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004786/0.4014, allocations: 43.98 kB / 415.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/0.4016, allocations: 95.86 kB / 415.3 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.361e-05/0.4017, allocations: 35.98 kB / 415.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003247/0.402, allocations: 277.5 kB / 415.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.402, allocations: 0 / 415.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001377/0.4034, allocations: 316 kB / 415.9 MB, free: 15.21 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 19,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00344/0.4068, allocations: 2.445 MB / 418.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00278/0.4096, allocations: 1.612 MB / 420 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.4097, allocations: 0 / 420 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001712/0.4114, allocations: 1.146 MB / 421.1 MB, free: 9.934 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006749/0.4121, allocations: 79.44 kB / 421.2 MB, free: 9.859 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008404/0.4205, allocations: 5.195 MB / 426.4 MB, free: 4.566 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006911/0.4212, allocations: 1.021 MB / 427.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005417/0.4218, allocations: 102.2 kB / 427.5 MB, free: 3.418 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004248/0.4222, allocations: 347.3 kB / 427.9 MB, free: 3.078 MB / 334.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4222, allocations: 4 kB / 427.9 MB, free: 3.074 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.033/0.4552, allocations: 16.88 MB / 444.8 MB, free: 2.449 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001726/0.4554, allocations: 220.7 kB / 445 MB, free: 2.211 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.35/2.805, allocations: 6.234 kB / 445 MB, free: 2.211 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat does not exist to compare? outputFormat=mat