Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestVectors.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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.Math.TestVectors,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestVectors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestVectors,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestVectors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001644/0.001644, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002424/0.002425, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.213/0.213, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 79.86 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.3313, allocations: 62.43 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.001649/0.333, allocations: 498.8 kB / 0.531 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001437/0.3344, allocations: 0.7604 MB / 0.5317 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.927e-05/0.3344, allocations: 0 / 0.5317 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.638e-05/0.3345, allocations: 0 / 0.5317 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.873e-06/0.3345, allocations: 0 / 0.5317 GB, free: 12.46 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:612:3-661:14:writable] Warning: Pure function 'ModelicaTest.Math.Vectors' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001739/0.3362, allocations: 0.6694 MB / 0.5324 GB, free: 12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.95e-05/0.3363, allocations: 1.156 kB / 0.5324 GB, free: 12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.191e-05/0.3363, allocations: 1.281 kB / 0.5324 GB, free: 12 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.482e-05/0.3364, allocations: 5.125 kB / 0.5324 GB, free: 12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.638e-05/0.3364, allocations: 0 / 0.5324 GB, free: 12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.102e-06/0.3364, allocations: 0 / 0.5324 GB, free: 12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007434/0.3371, allocations: 395.7 kB / 0.5327 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.14e-05/0.3372, allocations: 0 / 0.5327 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.991e-05/0.3372, allocations: 4.969 kB / 0.5327 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005153/0.3377, allocations: 337.4 kB / 0.5331 GB, free: 11.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3377, allocations: 0 / 0.5331 GB, free: 11.59 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3377, allocations: 0 / 0.5331 GB, free: 11.59 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.3378, allocations: 1.438 kB / 0.5331 GB, free: 11.59 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004387/0.3382, allocations: 392.7 kB / 0.5334 GB, free: 11.17 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.3382, allocations: 9.562 kB / 0.5335 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.032e-05/0.3383, allocations: 34.75 kB / 0.5335 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.531e-05/0.3383, allocations: 2.219 kB / 0.5335 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.871e-05/0.3384, allocations: 164.3 kB / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.115e-06/0.3384, allocations: 1.906 kB / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.548e-06/0.3384, allocations: 384 / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.761e-05/0.3385, allocations: 33 kB / 0.5337 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.3385, allocations: 7.875 kB / 0.5337 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.693e-06/0.3385, allocations: 4 kB / 0.5337 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.3386, allocations: 1.062 kB / 0.5337 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.565e-05/0.3386, allocations: 1.312 kB / 0.5337 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001225/0.3387, allocations: 142.8 kB / 0.5338 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.358e-05/0.3387, allocations: 28.2 kB / 0.5339 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.456e-05/0.3388, allocations: 6.297 kB / 0.5339 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.917e-06/0.3388, allocations: 0 / 0.5339 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/0.3388, allocations: 65.72 kB / 0.5339 GB, free: 10.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.3388, allocations: 0 / 0.5339 GB, free: 10.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001528/0.339, allocations: 66.7 kB / 0.534 GB, free: 10.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.339, allocations: 78.7 kB / 0.5341 GB, free: 10.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.734e-05/0.3391, allocations: 97.8 kB / 0.5342 GB, free: 10.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.478e-06/0.3391, allocations: 25.7 kB / 0.5342 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.092e-05/0.3391, allocations: 81.23 kB / 0.5343 GB, free: 10.19 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.613e-05/0.3391, allocations: 0 / 0.5343 GB, free: 10.19 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.567e-05/0.3392, allocations: 20.8 kB / 0.5343 GB, free: 10.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.55e-05/0.3393, allocations: 310.8 kB / 0.5346 GB, free: 9.852 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.598e-06/0.3393, allocations: 1.375 kB / 0.5346 GB, free: 9.852 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.591e-06/0.3393, allocations: 1.375 kB / 0.5346 GB, free: 9.852 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.123e-05/0.3393, allocations: 63.02 kB / 0.5346 GB, free: 9.777 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3393, allocations: 4 kB / 0.5346 GB, free: 9.773 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.328e-05/0.3394, allocations: 62.27 kB / 0.5347 GB, free: 9.707 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.659e-05/0.3394, allocations: 35.3 kB / 0.5347 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.3395, allocations: 5.312 kB / 0.5347 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.3395, allocations: 0 / 0.5347 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.3395, allocations: 3.938 kB / 0.5347 GB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.3395, allocations: 0 / 0.5347 GB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.479e-05/0.3395, allocations: 1.375 kB / 0.5347 GB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-06/0.3395, allocations: 1.375 kB / 0.5347 GB, free: 9.664 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 7.403e-05/0.3396, allocations: 132.9 kB / 0.5349 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.109e-05/0.3396, allocations: 9.266 kB / 0.5349 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.107e-06/0.3396, allocations: 11.06 kB / 0.5349 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.3396, allocations: 1.375 kB / 0.5349 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.3396, allocations: 0 / 0.5349 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-06/0.3397, allocations: 0 / 0.5349 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.359e-05/0.3397, allocations: 147.1 kB / 0.535 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3398, allocations: 1.375 kB / 0.535 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.3398, allocations: 0 / 0.535 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.3398, allocations: 0 / 0.535 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/0.3398, allocations: 9.297 kB / 0.535 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.3398, allocations: 3.938 kB / 0.535 GB, free: 9.301 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3398, allocations: 3.938 kB / 0.5351 GB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.747e-05/0.3399, allocations: 89.84 kB / 0.5351 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.356e-05/0.3399, allocations: 86.41 kB / 0.5352 GB, free: 9.094 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.3399, allocations: 3.938 kB / 0.5352 GB, free: 9.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.316e-06/0.3399, allocations: 1.375 kB / 0.5352 GB, free: 9.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.499e-05/0.34, allocations: 3.984 kB / 0.5352 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.34, allocations: 1.375 kB / 0.5352 GB, free: 9.086 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.433e-05/0.34, allocations: 79.31 kB / 0.5353 GB, free: 9.008 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.34, allocations: 0 / 0.5353 GB, free: 9.008 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003336/0.3403, allocations: 80.48 kB / 0.5354 GB, free: 8.988 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0007452/0.3411, allocations: 0.7435 MB / 0.5361 GB, free: 8.301 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.763e-05/0.3412, allocations: 64.84 kB / 0.5362 GB, free: 8.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.3412, allocations: 0 / 0.5362 GB, free: 8.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.666e-05/0.3412, allocations: 59.52 kB / 0.5362 GB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000122/0.3414, allocations: 4.328 kB / 0.5362 GB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003225/0.3417, allocations: 140.7 kB / 0.5364 GB, free: 8.008 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002109/0.3419, allocations: 0.6703 MB / 0.537 GB, free: 7.312 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.031e-06/0.3419, allocations: 0 / 0.537 GB, free: 7.312 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.344e-05/0.342, allocations: 8.812 kB / 0.537 GB, free: 7.305 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.342, allocations: 8.062 kB / 0.537 GB, free: 7.297 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01958/0.3615, allocations: 2.79 MB / 0.5398 GB, free: 5.746 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.903/8.265, allocations: 5.875 kB / 0.5398 GB, free: 5.742 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestVectors.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestVectors.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestVectors.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestVectors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestVectors_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestVectors_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestVectors.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestVectors.pipe 2>&1)