Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.InverseXRegularized.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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(BuildingSystems.Utilities.Math.Examples.InverseXRegularized,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_InverseXRegularized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.InverseXRegularized,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_InverseXRegularized",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.005334/0.005334, allocations: 104.3 kB / 15.73 MB, free: 5.953 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.001458/0.001458, allocations: 190.1 kB / 16.67 MB, free: 5.871 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.303/1.303, allocations: 222.9 MB / 240.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002286/0.002286, allocations: 288.1 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9709/0.9709, allocations: 169.2 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002847/0.002847, allocations: 95.84 kB / 0.681 GB, free: 7.5 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4603/0.4632, allocations: 86.97 MB / 0.7659 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.InverseXRegularized): time 0.002479/0.4657, allocations: 1.437 MB / 0.7673 GB, free: 2.438 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001226/0.4669, allocations: 0.797 MB / 0.7681 GB, free: 1.633 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.554e-05/0.467, allocations: 0 / 0.7681 GB, free: 1.633 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.883e-05/0.467, allocations: 3.938 kB / 0.7681 GB, free: 1.629 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.801e-05/0.4671, allocations: 8 kB / 0.7681 GB, free: 1.621 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004035/0.4675, allocations: 119.5 kB / 0.7682 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.238e-05/0.4676, allocations: 35.91 kB / 0.7683 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 7.773e-05/0.4677, allocations: 7.984 kB / 0.7683 GB, free: 1.461 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.177e-05/0.4677, allocations: 15.92 kB / 0.7683 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.122e-05/0.4678, allocations: 27.92 kB / 0.7683 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.359e-05/0.4678, allocations: 4 kB / 0.7683 GB, free: 1.414 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004584/0.4683, allocations: 315.3 kB / 0.7686 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.59e-05/0.4683, allocations: 7.984 kB / 0.7686 GB, free: 1.098 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.027e-05/0.4683, allocations: 11.94 kB / 0.7686 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003012/0.4686, allocations: 200.6 kB / 0.7688 GB, free: 0.8984 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.4686, allocations: 0 / 0.7688 GB, free: 0.8984 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.162e-06/0.4686, allocations: 0 / 0.7688 GB, free: 0.8984 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.94e-06/0.4686, allocations: 0 / 0.7688 GB, free: 0.8984 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005555/0.4692, allocations: 383 kB / 0.7692 GB, free: 488 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.4692, allocations: 8.031 kB / 0.7692 GB, free: 480 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.776e-05/0.4693, allocations: 38.69 kB / 0.7692 GB, free: 432 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004504/0.4697, allocations: 72.84 kB / 0.7693 GB, free: 360 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001338/0.4699, allocations: 168.3 kB / 0.7695 GB, free: 152 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.115e-05/0.4699, allocations: 384 / 0.7695 GB, free: 152 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.507e-05/0.4699, allocations: 4.375 kB / 0.7695 GB, free: 148 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000284/0.4702, allocations: 89.75 kB / 0.7695 GB, free: 52 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.4702, allocations: 0 / 0.7695 GB, free: 52 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.4703, allocations: 0 / 0.7695 GB, free: 52 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.4703, allocations: 0 / 0.7695 GB, free: 52 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004023/0.4707, allocations: 91.89 kB / 0.7696 GB, free: 15.96 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005106/0.4712, allocations: 300.8 kB / 0.7699 GB, free: 15.62 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003544/0.4716, allocations: 90.5 kB / 0.77 GB, free: 15.52 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001968/0.4718, allocations: 52.86 kB / 0.7701 GB, free: 15.46 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.4718, allocations: 0 / 0.7701 GB, free: 15.46 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.794e-05/0.4718, allocations: 42.5 kB / 0.7701 GB, free: 15.41 MB / 0.545 GB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.4718, allocations: 0 / 0.7701 GB, free: 15.41 MB / 0.545 GB Notification: Performance of matching and sorting (n=2): time 0.0007008/0.4725, allocations: 161.5 kB / 0.7703 GB, free: 15.25 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.4726, allocations: 59.39 kB / 0.7703 GB, free: 15.18 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.971e-05/0.4727, allocations: 97.98 kB / 0.7704 GB, free: 15.07 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.4727, allocations: 29.7 kB / 0.7704 GB, free: 15.04 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.086e-05/0.4728, allocations: 88.09 kB / 0.7705 GB, free: 14.95 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.081e-05/0.4728, allocations: 11.94 kB / 0.7705 GB, free: 14.94 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.881e-05/0.4728, allocations: 9.719 kB / 0.7705 GB, free: 14.92 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000161/0.473, allocations: 322.8 kB / 0.7708 GB, free: 14.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002054/0.4732, allocations: 43.95 kB / 0.7709 GB, free: 14.55 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.4734, allocations: 47.94 kB / 0.7709 GB, free: 14.51 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003669/0.4738, allocations: 88.83 kB / 0.771 GB, free: 14.42 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4738, allocations: 0 / 0.771 GB, free: 14.42 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0004324/0.4742, allocations: 129.5 kB / 0.7711 GB, free: 14.29 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.4743, allocations: 4 kB / 0.7711 GB, free: 14.28 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.4743, allocations: 0 / 0.7711 GB, free: 14.28 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.4743, allocations: 0 / 0.7711 GB, free: 14.28 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.4744, allocations: 23.97 kB / 0.7712 GB, free: 14.26 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.4745, allocations: 0 / 0.7712 GB, free: 14.26 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.4746, allocations: 20 kB / 0.7712 GB, free: 14.24 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-06/0.4746, allocations: 4 kB / 0.7712 GB, free: 14.23 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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 8.971e-05/0.4747, allocations: 109.8 kB / 0.7713 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.575e-05/0.4747, allocations: 0 / 0.7713 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.235e-05/0.4748, allocations: 15.11 kB / 0.7713 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.4748, allocations: 0 / 0.7713 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.4748, allocations: 0 / 0.7713 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.4748, allocations: 0 / 0.7713 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002109/0.475, allocations: 169.6 kB / 0.7715 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.475, allocations: 4.25 kB / 0.7715 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001377/0.4751, allocations: 27.91 kB / 0.7715 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.4752, allocations: 4 kB / 0.7715 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.4752, allocations: 3.984 kB / 0.7715 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.4752, allocations: 3.984 kB / 0.7715 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.4752, allocations: 3.938 kB / 0.7715 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004891/0.4757, allocations: 231.3 kB / 0.7717 GB, free: 13.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.566e-05/0.4757, allocations: 81.09 kB / 0.7718 GB, free: 13.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.4758, allocations: 0 / 0.7718 GB, free: 13.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001583/0.4759, allocations: 15.98 kB / 0.7718 GB, free: 13.49 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.836e-05/0.476, allocations: 3.984 kB / 0.7718 GB, free: 13.48 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.476, allocations: 4 kB / 0.7718 GB, free: 13.48 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.415e-05/0.476, allocations: 83.28 kB / 0.7719 GB, free: 13.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.476, allocations: 0 / 0.7719 GB, free: 13.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003161/0.4764, allocations: 15.97 kB / 0.7719 GB, free: 13.38 MB / 0.545 GB 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 (2): * Single equations (assignments): 2 * 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.0008518/0.4772, allocations: 0.763 MB / 0.7727 GB, free: 12.59 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004356/0.4777, allocations: 95.94 kB / 0.7728 GB, free: 12.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.4777, allocations: 0 / 0.7728 GB, free: 12.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002107/0.4779, allocations: 52 kB / 0.7728 GB, free: 12.45 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003317/0.4782, allocations: 0 / 0.7728 GB, free: 12.45 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007318/0.479, allocations: 207 kB / 0.773 GB, free: 12.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.4793, allocations: 0.6768 MB / 0.7737 GB, free: 11.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.086e-05/0.4794, allocations: 8 kB / 0.7737 GB, free: 11.49 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.763e-05/0.4794, allocations: 15.42 kB / 0.7737 GB, free: 11.47 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.4794, allocations: 0 / 0.7737 GB, free: 11.47 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.649/2.128, allocations: 1.698 MB / 0.7754 GB, free: 9.895 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.993/10.12, allocations: 5.328 kB / 0.7754 GB, free: 9.895 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.InverseXRegularized.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.InverseXRegularized.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.InverseXRegularized.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.InverseXRegularized.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_InverseXRegularized_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_InverseXRegularized.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.InverseXRegularized.pipe 2>&1)