Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007946/0.000795, allocations: 86.36 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008704/0.0008709, allocations: 184.7 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 223.3 MB / 241.2 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002633/0.0002634, allocations: 6.125 kB / 300.9 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1007, allocations: 50.43 MB / 351.3 MB, free: 11.56 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.008623/0.1093, allocations: 6.747 MB / 358.1 MB, free: 4.781 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00592/0.1153, allocations: 2.711 MB / 360.8 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008756/0.1162, allocations: 24 kB / 360.8 MB, free: 2.039 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008839/0.1171, allocations: 318.1 kB / 361.1 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001625/0.1188, allocations: 0.6217 MB / 361.8 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002109/0.1209, allocations: 1.006 MB / 362.8 MB, free: 100 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002038/0.1229, allocations: 1.488 MB / 364.3 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002293/0.1252, allocations: 1.448 MB / 365.7 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006478/0.1259, allocations: 0.5018 MB / 366.2 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007204/0.1266, allocations: 0.6338 MB / 366.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001168/0.1267, allocations: 68 kB / 366.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007867/0.1275, allocations: 355.6 kB / 367.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002214/0.1278, allocations: 250.9 kB / 367.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000275/0.128, allocations: 288.9 kB / 367.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001566/0.1296, allocations: 1.691 MB / 369.5 MB, free: 9.316 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.1296, allocations: 0 / 369.5 MB, free: 9.316 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1296, allocations: 4 kB / 369.5 MB, free: 9.312 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.176e-05/0.1297, allocations: 0 / 369.5 MB, free: 9.312 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: 371 * Number of variables: 371 Notification: Performance of Generate backend data structure: time 0.005216/0.1349, allocations: 1.88 MB / 371.4 MB, free: 7.379 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.135, allocations: 12.03 kB / 371.4 MB, free: 7.367 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003694/0.1353, allocations: 226.1 kB / 371.6 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002975/0.1383, allocations: 0.5251 MB / 372.1 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001436/0.1398, allocations: 0.8128 MB / 372.9 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001512/0.1399, allocations: 144.6 kB / 373.1 MB, free: 5.602 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002023/0.1401, allocations: 156 kB / 373.2 MB, free: 5.449 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002596/0.1427, allocations: 1.343 MB / 374.6 MB, free: 4.086 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.2e-05/0.1428, allocations: 15.89 kB / 374.6 MB, free: 4.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001277/0.1429, allocations: 60 kB / 374.6 MB, free: 4.012 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.842e-05/0.143, allocations: 39.94 kB / 374.7 MB, free: 3.973 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002718/0.1457, allocations: 1.308 MB / 376 MB, free: 2.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008206/0.1539, allocations: 4.888 MB / 380.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00301/0.157, allocations: 1.936 MB / 382.8 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/0.1581, allocations: 0.5783 MB / 383.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002009/0.1583, allocations: 118 kB / 383.5 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001623/0.1599, allocations: 0.7411 MB / 384.2 MB, free: 9.965 MB / 318.1 MB Notification: Performance of pre-optimization done (n=132): time 2.856e-06/0.16, allocations: 0 / 384.2 MB, free: 9.965 MB / 318.1 MB Notification: Performance of matching and sorting (n=166): time 0.01497/0.1749, allocations: 5.695 MB / 389.9 MB, free: 4.152 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001464/0.1751, allocations: 153.8 kB / 390.1 MB, free: 3.973 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000912/0.176, allocations: 0.5978 MB / 390.7 MB, free: 3.363 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000121/0.1762, allocations: 61.7 kB / 390.7 MB, free: 3.297 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005907/0.1768, allocations: 0.574 MB / 391.3 MB, free: 2.711 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005535/0.1773, allocations: 0.539 MB / 391.9 MB, free: 2.164 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.193e-05/0.1774, allocations: 36 kB / 391.9 MB, free: 2.129 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002829/0.1777, allocations: 410.7 kB / 392.3 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001136/0.1789, allocations: 0.5115 MB / 392.8 MB, free: 1.207 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001369/0.1802, allocations: 0.8404 MB / 393.6 MB, free: 260 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001258/0.1815, allocations: 0.6282 MB / 394.3 MB, free: 15.63 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.1815, allocations: 7.938 kB / 394.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=215) (initialization): time 0.004385/0.1859, allocations: 2.024 MB / 396.3 MB, free: 13.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.779e-05/0.186, allocations: 8 kB / 396.3 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/0.186, allocations: 8 kB / 396.3 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001952/0.1879, allocations: 0.5366 MB / 396.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/0.1892, allocations: 295.5 kB / 397.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01072/0.1999, allocations: 8.641 MB / 405.8 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/0.2012, allocations: 84.03 kB / 405.9 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/0.2013, allocations: 63.98 kB / 405.9 MB, free: 3.414 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,$PRE.rootMeanSquare.mean1.y_last,rootMeanSquare.mean1.y_last,$PRE.rootMeanSquare.mean2.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (161): * Single equations (assignments): 157 * 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: 3 {(1,100.0%) 9,(1,100.0%) 19,(1,100.0%) 19} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007249/0.202, allocations: 353.5 kB / 406.3 MB, free: 3.062 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001631/0.2022, allocations: 110.7 kB / 406.4 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004354/0.2066, allocations: 1.934 MB / 408.3 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.702e-05/0.2066, allocations: 16 kB / 408.3 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.2066, allocations: 8 kB / 408.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.022e-05/0.2066, allocations: 11.97 kB / 408.4 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006702/0.2133, allocations: 3.538 MB / 411.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.2134, allocations: 7.984 kB / 411.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009443/0.2143, allocations: 215.7 kB / 412.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001881/0.2162, allocations: 0.5092 MB / 412.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.98e-05/0.2163, allocations: 39.98 kB / 412.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009918/0.2263, allocations: 8.334 MB / 421 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.2263, allocations: 96 / 421 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006112/0.2325, allocations: 2.679 MB / 423.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000682/0.2332, allocations: 287.6 kB / 423.9 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001725/0.2334, allocations: 39.98 kB / 424 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006884/0.2341, allocations: 67.97 kB / 424.1 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003832/0.2344, allocations: 137 kB / 424.2 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001545/0.2346, allocations: 47.98 kB / 424.2 MB, free: 384 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.25/0.4847, allocations: 411.9 kB / 424.6 MB, free: 62 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.82e-07/0.4847, allocations: 0 / 424.6 MB, free: 62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002561/0.4873, allocations: 412.7 kB / 425 MB, free: 62 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (coil.i,fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,rootMeanSquare.mean1.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 6 (fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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: 3 {(1,100.0%) 19,(1,100.0%) 9,(2,100.0%) 16} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.005628/0.4929, allocations: 3.314 MB / 428.4 MB, free: 61.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003938/0.4969, allocations: 2.096 MB / 430.4 MB, free: 60.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/0.4969, allocations: 1.125 kB / 430.5 MB, free: 60.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002596/0.4995, allocations: 1.424 MB / 431.9 MB, free: 60.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009424/0.5005, allocations: 127.5 kB / 432 MB, free: 60.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01578/0.5163, allocations: 7.81 MB / 439.8 MB, free: 57.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/0.5173, allocations: 1.197 MB / 441 MB, free: 56.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009146/0.5183, allocations: 161.4 kB / 441.2 MB, free: 56.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007882/0.5191, allocations: 0.516 MB / 441.7 MB, free: 56.63 MB / 350.1 MB Notification: Performance of SimCode: time 2.315e-06/0.5191, allocations: 0 / 441.7 MB, free: 56.63 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0452/0.5643, allocations: 25.92 MB / 467.6 MB, free: 36.64 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001581/0.5645, allocations: 240 kB / 467.8 MB, free: 36.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.803/3.367, allocations: 0 / 467.8 MB, free: 36.39 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat does not exist to compare? outputFormat=mat