Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_TestMatrices",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.001591/0.001591, allocations: 101.1 kB / 16.26 MB, free: 5.93 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.001732/0.001732, allocations: 190.9 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.357/1.357, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2172/0.2172, allocations: 43.53 MB / 313.9 MB, free: 0.5195 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001537, allocations: 60.73 kB / 382.8 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09249/0.09404, allocations: 57.8 MB / 440.6 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001507/0.09558, allocations: 0.4897 MB / 441.1 MB, free: 6.312 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001399/0.097, allocations: 1.6 MB / 442.7 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.25e-05/0.09702, allocations: 0 / 442.7 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.332e-05/0.09705, allocations: 0 / 442.7 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.108e-06/0.09706, allocations: 4 kB / 442.7 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006203/0.09769, allocations: 263.3 kB / 443 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.135e-05/0.09774, allocations: 4 kB / 443 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.422e-05/0.09778, allocations: 0 / 443 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.29e-05/0.0978, allocations: 3.984 kB / 443 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.515e-05/0.09782, allocations: 0 / 443 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.689e-06/0.09783, allocations: 0 / 443 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004717/0.0983, allocations: 499 kB / 443.5 MB, free: 3.938 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.831e-06/0.09832, allocations: 0 / 443.5 MB, free: 3.938 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.5e-05/0.09834, allocations: 0 / 443.5 MB, free: 3.938 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002984/0.09865, allocations: 307.3 kB / 443.8 MB, free: 3.637 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.09866, allocations: 0 / 443.8 MB, free: 3.637 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.09866, allocations: 4 kB / 443.8 MB, free: 3.633 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.747e-06/0.09868, allocations: 0 / 443.8 MB, free: 3.633 MB / 318.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.0002297/0.09891, allocations: 374.8 kB / 444.1 MB, free: 3.215 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.157e-05/0.09895, allocations: 15.89 kB / 444.1 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.945e-05/0.09897, allocations: 30.75 kB / 444.2 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.11e-05/0.099, allocations: 0.9375 kB / 444.2 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.969e-05/0.09904, allocations: 160.4 kB / 444.3 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.739e-06/0.09906, allocations: 384 / 444.3 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.881e-06/0.09907, allocations: 384 / 444.3 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.9e-05/0.09913, allocations: 41.75 kB / 444.4 MB, free: 2.918 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.632e-06/0.09915, allocations: 0 / 444.4 MB, free: 2.918 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.691e-06/0.09916, allocations: 0 / 444.4 MB, free: 2.918 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.09916, allocations: 4 kB / 444.4 MB, free: 2.914 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.579e-05/0.09918, allocations: 8 kB / 444.4 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.359e-05/0.09926, allocations: 145.6 kB / 444.5 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.634e-05/0.0993, allocations: 14.67 kB / 444.5 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.079e-05/0.09931, allocations: 12.8 kB / 444.6 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.915e-06/0.09933, allocations: 3.984 kB / 444.6 MB, free: 2.672 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.09936, allocations: 68.2 kB / 444.6 MB, free: 2.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.303e-06/0.09936, allocations: 0 / 444.6 MB, free: 2.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001206/0.09949, allocations: 59.41 kB / 444.7 MB, free: 2.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.858e-05/0.09953, allocations: 81.05 kB / 444.8 MB, free: 2.422 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.663e-05/0.09956, allocations: 89.86 kB / 444.9 MB, free: 2.324 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.641e-06/0.09957, allocations: 29.7 kB / 444.9 MB, free: 2.289 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.338e-06/0.09958, allocations: 88.06 kB / 445 MB, free: 2.199 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.306e-05/0.0996, allocations: 0 / 445 MB, free: 2.199 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.156e-05/0.09963, allocations: 13.72 kB / 445 MB, free: 2.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.322e-05/0.09966, allocations: 319 kB / 445.3 MB, free: 1.859 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.588e-06/0.09968, allocations: 0 / 445.3 MB, free: 1.859 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.861e-06/0.09969, allocations: 7.938 kB / 445.3 MB, free: 1.852 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.797e-05/0.09972, allocations: 60.27 kB / 445.4 MB, free: 1.777 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.09973, allocations: 0 / 445.4 MB, free: 1.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.069e-05/0.09978, allocations: 67.39 kB / 445.4 MB, free: 1.699 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.09981, allocations: 33.64 kB / 445.5 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.636e-06/0.09982, allocations: 96 / 445.5 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.09984, allocations: 4 kB / 445.5 MB, free: 1.656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.09984, allocations: 0 / 445.5 MB, free: 1.656 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.09985, allocations: 4 kB / 445.5 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.335e-05/0.09987, allocations: 0 / 445.5 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/0.09988, allocations: 0 / 445.5 MB, free: 1.652 MB / 318.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 4.318e-05/0.09993, allocations: 139.5 kB / 445.6 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.804e-06/0.09994, allocations: 11.88 kB / 445.6 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.134e-06/0.09995, allocations: 3.125 kB / 445.6 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.09996, allocations: 0 / 445.6 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.09997, allocations: 4 kB / 445.6 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.09997, allocations: 3.984 kB / 445.6 MB, free: 1.477 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.314e-05/0.1, allocations: 145.7 kB / 445.8 MB, free: 1.285 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1, allocations: 0 / 445.8 MB, free: 1.285 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.92e-07/0.1, allocations: 3.984 kB / 445.8 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.1, allocations: 3.938 kB / 445.8 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.009e-06/0.1, allocations: 0 / 445.8 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1001, allocations: 0 / 445.8 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1001, allocations: 0 / 445.8 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.831e-05/0.1001, allocations: 94.84 kB / 445.9 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.292e-05/0.1001, allocations: 85.03 kB / 445.9 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.918e-06/0.1002, allocations: 0 / 445.9 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.478e-06/0.1002, allocations: 4 kB / 446 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.126e-05/0.1002, allocations: 3.938 kB / 446 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-06/0.1002, allocations: 0 / 446 MB, free: 1.051 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.668e-06/0.1002, allocations: 75.28 kB / 446 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1002, allocations: 3.938 kB / 446 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000277/0.1005, allocations: 68.02 kB / 446.1 MB, free: 0.9062 MB / 318.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.0004385/0.1009, allocations: 0.7191 MB / 446.8 MB, free: 164 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 6.427e-05/0.101, allocations: 55.41 kB / 446.9 MB, free: 96 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.101, allocations: 0 / 446.9 MB, free: 96 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.569e-05/0.101, allocations: 63.33 kB / 446.9 MB, free: 20 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001193/0.1012, allocations: 2.812 kB / 446.9 MB, free: 20 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002858/0.1015, allocations: 134.8 kB / 447.1 MB, free: 15.85 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001888/0.1017, allocations: 0.6729 MB / 447.7 MB, free: 15.15 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.15e-06/0.1017, allocations: 0 / 447.7 MB, free: 15.15 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.082e-05/0.1017, allocations: 7.438 kB / 447.7 MB, free: 15.14 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1017, allocations: 0 / 447.7 MB, free: 15.14 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01725/0.1189, allocations: 2.086 MB / 449.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.591/7.71, allocations: 0 / 449.8 MB, free: 13.06 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_TestMatrices_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_TestMatrices.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices.pipe 2>&1)