Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) 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(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001765/0.001766, allocations: 121.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002165/0.002166, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2257/0.2257, allocations: 46.11 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002174/0.002174, allocations: 75.88 kB / 480.9 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2807, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.003572/0.2843, allocations: 2.494 MB / 0.533 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0016/0.2859, allocations: 1.106 MB / 0.5341 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.102e-05/0.286, allocations: 5.5 kB / 0.5341 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001164/0.2872, allocations: 0.4914 MB / 0.5346 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002427/0.2875, allocations: 106.6 kB / 0.5347 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008305/0.2883, allocations: 487.1 kB / 0.5351 GB, free: 9.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002761/0.2886, allocations: 226 kB / 0.5354 GB, free: 9.617 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004202/0.289, allocations: 255.3 kB / 0.5356 GB, free: 9.465 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001702/0.2892, allocations: 97.17 kB / 0.5357 GB, free: 9.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001607/0.2894, allocations: 129.2 kB / 0.5358 GB, free: 9.324 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.364e-05/0.2894, allocations: 22.06 kB / 0.5358 GB, free: 9.324 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002931/0.2897, allocations: 153.6 kB / 0.536 GB, free: 9.262 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.518e-05/0.2898, allocations: 46.5 kB / 0.536 GB, free: 9.223 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001097/0.2899, allocations: 117.4 kB / 0.5361 GB, free: 9.141 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004857/0.2904, allocations: 411.7 kB / 0.5365 GB, free: 8.852 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.145e-06/0.2904, allocations: 0 / 0.5365 GB, free: 8.852 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2904, allocations: 5.406 kB / 0.5365 GB, free: 8.848 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.2904, allocations: 0 / 0.5365 GB, free: 8.848 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.00126/0.2917, allocations: 0.618 MB / 0.5371 GB, free: 8.305 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.2917, allocations: 10.09 kB / 0.5372 GB, free: 8.305 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.431e-05/0.2918, allocations: 62.31 kB / 0.5372 GB, free: 8.242 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003144/0.2921, allocations: 53.7 kB / 0.5373 GB, free: 8.215 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001543/0.2923, allocations: 190.8 kB / 0.5374 GB, free: 7.996 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/0.2923, allocations: 18.28 kB / 0.5375 GB, free: 7.988 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.482e-05/0.2924, allocations: 32.97 kB / 0.5375 GB, free: 7.973 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000565/0.2929, allocations: 287.4 kB / 0.5378 GB, free: 7.785 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.293, allocations: 5.234 kB / 0.5378 GB, free: 7.781 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.526e-05/0.293, allocations: 10.53 kB / 0.5378 GB, free: 7.773 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.293, allocations: 6.469 kB / 0.5378 GB, free: 7.773 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005573/0.2936, allocations: 226.5 kB / 0.538 GB, free: 7.672 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001471/0.295, allocations: 1.006 MB / 0.539 GB, free: 6.793 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000556/0.2956, allocations: 386.6 kB / 0.5394 GB, free: 6.453 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003378/0.296, allocations: 136.9 kB / 0.5395 GB, free: 6.379 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001771/0.2962, allocations: 166.3 kB / 0.5396 GB, free: 6.188 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.2962, allocations: 36.16 kB / 0.5397 GB, free: 6.145 MB / 398.1 MB Notification: Performance of pre-optimization done (n=19): time 1.333e-06/0.2962, allocations: 1.312 kB / 0.5397 GB, free: 6.145 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001194/0.2974, allocations: 0.4952 MB / 0.5402 GB, free: 5.762 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/0.2975, allocations: 80.23 kB / 0.5402 GB, free: 5.668 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001248/0.2976, allocations: 145.3 kB / 0.5404 GB, free: 5.543 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/0.2976, allocations: 30.48 kB / 0.5404 GB, free: 5.508 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.077e-05/0.2977, allocations: 146.3 kB / 0.5406 GB, free: 5.371 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.938e-05/0.2978, allocations: 70.97 kB / 0.5406 GB, free: 5.309 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.613e-05/0.2979, allocations: 38.61 kB / 0.5407 GB, free: 5.277 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.298, allocations: 326.2 kB / 0.541 GB, free: 4.953 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002138/0.2982, allocations: 72.94 kB / 0.541 GB, free: 4.918 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000246/0.2985, allocations: 129.2 kB / 0.5412 GB, free: 4.816 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004623/0.2989, allocations: 199.7 kB / 0.5414 GB, free: 4.684 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2989, allocations: 0 / 0.5414 GB, free: 4.684 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006399/0.2996, allocations: 281.1 kB / 0.5416 GB, free: 4.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.2996, allocations: 5.891 kB / 0.5416 GB, free: 4.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.2996, allocations: 5.594 kB / 0.5416 GB, free: 4.516 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001974/0.2998, allocations: 52.62 kB / 0.5417 GB, free: 4.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001884/0.3, allocations: 46.53 kB / 0.5417 GB, free: 4.465 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002131/0.3022, allocations: 2.842 MB / 0.5445 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001495/0.3023, allocations: 26.02 kB / 0.5445 GB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.115e-05/0.3024, allocations: 15.09 kB / 0.5445 GB, free: 1.5 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001329/0.3025, allocations: 143.8 kB / 0.5447 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.338e-05/0.3026, allocations: 10.67 kB / 0.5447 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006602/0.3032, allocations: 270.6 kB / 0.5449 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.3032, allocations: 3.281 kB / 0.5449 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3032, allocations: 1 kB / 0.5449 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3033, allocations: 1.297 kB / 0.545 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.3044, allocations: 0.6561 MB / 0.5456 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.3044, allocations: 1.219 kB / 0.5456 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001677/0.3046, allocations: 33.69 kB / 0.5456 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001197/0.3047, allocations: 50.94 kB / 0.5457 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.121e-05/0.3047, allocations: 7.344 kB / 0.5457 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00201/0.3067, allocations: 2.846 MB / 0.5485 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3067, allocations: 1.188 kB / 0.5485 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009123/0.3077, allocations: 0.5193 MB / 0.549 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.242e-05/0.3077, allocations: 86.16 kB / 0.5491 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.37e-05/0.3078, allocations: 5.438 kB / 0.5491 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001867/0.3079, allocations: 23.94 kB / 0.5491 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.907e-05/0.308, allocations: 21.02 kB / 0.5491 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.308, allocations: 4.406 kB / 0.5491 GB, free: 13.11 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.729e-05/0.3081, allocations: 108.1 kB / 0.5492 GB, free: 13.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3081, allocations: 0 / 0.5492 GB, free: 13.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004244/0.3086, allocations: 76.56 kB / 0.5493 GB, free: 12.99 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (magFluxSource.port_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 (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001293/0.3099, allocations: 1.081 MB / 0.5503 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007588/0.3106, allocations: 421.5 kB / 0.5507 GB, free: 11.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3106, allocations: 3.938 kB / 0.5507 GB, free: 11.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004281/0.3111, allocations: 334.7 kB / 0.5511 GB, free: 11.44 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000395/0.3115, allocations: 17.47 kB / 0.5511 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003226/0.3147, allocations: 2.371 MB / 0.5534 GB, free: 9.004 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003499/0.3151, allocations: 0.7361 MB / 0.5541 GB, free: 8.242 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.286e-05/0.3152, allocations: 17.42 kB / 0.5541 GB, free: 8.227 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.04e-05/0.3153, allocations: 59.42 kB / 0.5542 GB, free: 8.168 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3153, allocations: 0 / 0.5542 GB, free: 8.168 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03149/0.3468, allocations: 4.38 MB / 0.5585 GB, free: 3.953 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.9/9.247, allocations: 15.17 kB / 0.5585 GB, free: 3.945 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe 2>&1)