Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors.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.FluxTubes.Sensors,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sensors,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001326/0.001326, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001454/0.001454, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 247 MB, free: 10.4 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.2305/0.2305, allocations: 46.12 MB / 344.4 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.002247/0.002247, allocations: 83.84 kB / 480.9 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3384/0.3407, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sensors): time 0.003371/0.3441, allocations: 1.933 MB / 0.5325 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001065/0.3452, allocations: 0.6044 MB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.863e-05/0.3453, allocations: 7.156 kB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001988/0.3455, allocations: 36.41 kB / 0.5331 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001199/0.3457, allocations: 34.33 kB / 0.5331 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001589/0.3458, allocations: 45.3 kB / 0.5332 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001939/0.346, allocations: 145.6 kB / 0.5333 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001529/0.3462, allocations: 61.02 kB / 0.5334 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.842e-05/0.3463, allocations: 57.78 kB / 0.5334 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.447e-05/0.3464, allocations: 64.2 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.65e-05/0.3464, allocations: 12.38 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.574e-05/0.3465, allocations: 17.75 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.96e-05/0.3465, allocations: 32.03 kB / 0.5336 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.03e-05/0.3466, allocations: 62.92 kB / 0.5336 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002083/0.3468, allocations: 167.8 kB / 0.5338 GB, free: 10.89 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3468, allocations: 0 / 0.5338 GB, free: 10.89 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3468, allocations: 0 / 0.5338 GB, free: 10.89 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.3468, allocations: 0 / 0.5338 GB, free: 10.89 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0006936/0.3475, allocations: 451.4 kB / 0.5342 GB, free: 10.45 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.3476, allocations: 9.469 kB / 0.5342 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.401e-05/0.3477, allocations: 47.02 kB / 0.5343 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.262e-05/0.3477, allocations: 20.25 kB / 0.5343 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002953/0.348, allocations: 210.4 kB / 0.5345 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.348, allocations: 10.75 kB / 0.5345 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.365e-05/0.3481, allocations: 12.62 kB / 0.5345 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003229/0.3484, allocations: 139.8 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.3484, allocations: 1.25 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.658e-05/0.3484, allocations: 9.25 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.832e-06/0.3484, allocations: 3.5 kB / 0.5347 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002871/0.3487, allocations: 104.6 kB / 0.5348 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.3498, allocations: 0.6084 MB / 0.5353 GB, free: 9.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002626/0.3501, allocations: 82.8 kB / 0.5354 GB, free: 9.371 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.3502, allocations: 27.12 kB / 0.5355 GB, free: 9.355 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.3502, allocations: 1.156 kB / 0.5355 GB, free: 9.355 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.019e-05/0.3503, allocations: 35.81 kB / 0.5355 GB, free: 9.312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.162e-06/0.3503, allocations: 0 / 0.5355 GB, free: 9.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.000401/0.3507, allocations: 106.5 kB / 0.5356 GB, free: 9.246 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.141e-05/0.3507, allocations: 52.78 kB / 0.5356 GB, free: 9.184 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001727/0.3509, allocations: 163.9 kB / 0.5358 GB, free: 9.039 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.3509, allocations: 25.7 kB / 0.5358 GB, free: 9.008 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.351, allocations: 140 kB / 0.536 GB, free: 8.875 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.3511, allocations: 18.53 kB / 0.536 GB, free: 8.859 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.499e-05/0.3511, allocations: 32.53 kB / 0.536 GB, free: 8.828 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.3513, allocations: 321.6 kB / 0.5363 GB, free: 8.508 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.3514, allocations: 28.47 kB / 0.5363 GB, free: 8.496 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001462/0.3516, allocations: 63.52 kB / 0.5364 GB, free: 8.438 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002274/0.3518, allocations: 94.56 kB / 0.5365 GB, free: 8.363 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3518, allocations: 1.375 kB / 0.5365 GB, free: 8.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002952/0.3521, allocations: 122.9 kB / 0.5366 GB, free: 8.289 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.3521, allocations: 5.312 kB / 0.5366 GB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.3521, allocations: 1.219 kB / 0.5366 GB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.3522, allocations: 10 kB / 0.5366 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.3523, allocations: 31.44 kB / 0.5366 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.3523, allocations: 2.188 kB / 0.5367 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.52e-05/0.3524, allocations: 10.45 kB / 0.5367 GB, free: 8.266 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/0.3524, allocations: 3.219 kB / 0.5367 GB, free: 8.266 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001263/0.3526, allocations: 132 kB / 0.5368 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.092e-05/0.3526, allocations: 8.453 kB / 0.5368 GB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.701e-05/0.3527, allocations: 10.47 kB / 0.5368 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.3527, allocations: 5.062 kB / 0.5368 GB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3527, allocations: 0 / 0.5368 GB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.3527, allocations: 1.031 kB / 0.5368 GB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002591/0.3529, allocations: 213.8 kB / 0.537 GB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.353, allocations: 5 kB / 0.537 GB, free: 7.875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.169e-05/0.3531, allocations: 15.83 kB / 0.537 GB, free: 7.871 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.3531, allocations: 0 / 0.537 GB, free: 7.871 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.3531, allocations: 5.062 kB / 0.537 GB, free: 7.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.3531, allocations: 3.938 kB / 0.537 GB, free: 7.863 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3531, allocations: 1.281 kB / 0.537 GB, free: 7.863 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003049/0.3534, allocations: 189.9 kB / 0.5372 GB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.965e-05/0.3535, allocations: 87.52 kB / 0.5373 GB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.3535, allocations: 1.062 kB / 0.5373 GB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.6e-05/0.3536, allocations: 11.75 kB / 0.5373 GB, free: 7.586 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.546e-05/0.3537, allocations: 10.14 kB / 0.5373 GB, free: 7.578 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.06e-06/0.3537, allocations: 1.125 kB / 0.5373 GB, free: 7.578 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.728e-05/0.3538, allocations: 107 kB / 0.5374 GB, free: 7.492 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3538, allocations: 0 / 0.5374 GB, free: 7.492 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002546/0.3541, allocations: 28.14 kB / 0.5375 GB, free: 7.484 MB / 398.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 (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006403/0.3547, allocations: 0.7206 MB / 0.5382 GB, free: 6.785 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002716/0.355, allocations: 73.05 kB / 0.5382 GB, free: 6.754 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.355, allocations: 0 / 0.5382 GB, free: 6.754 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001021/0.3551, allocations: 29.09 kB / 0.5383 GB, free: 6.742 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002676/0.3554, allocations: 15.19 kB / 0.5383 GB, free: 6.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00221/0.3576, allocations: 1.643 MB / 0.5399 GB, free: 5.262 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/0.358, allocations: 0.7108 MB / 0.5406 GB, free: 4.547 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.71e-05/0.3581, allocations: 7.656 kB / 0.5406 GB, free: 4.543 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.315e-05/0.3581, allocations: 35.92 kB / 0.5406 GB, free: 4.512 MB / 398.1 MB Notification: Performance of SimCode: time 1.91e-07/0.3581, allocations: 0 / 0.5406 GB, free: 4.512 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02396/0.3821, allocations: 2.17 MB / 0.5427 GB, free: 3.352 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.285/7.667, allocations: 10.06 kB / 0.5427 GB, free: 3.344 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sensors.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe 2>&1)