Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002779/0.002778, allocations: 185.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.505/3.505, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001761/0.001761, allocations: 103.3 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006189/0.0006193, allocations: 12 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.571/0.5717, allocations: 47.57 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004968/0.5767, allocations: 2.21 MB / 376.8 MB, free: 43.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002483/0.5793, allocations: 0.6864 MB / 377.4 MB, free: 43.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003448/0.5797, allocations: 8.156 kB / 377.4 MB, free: 43.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001257/0.5798, allocations: 34.94 kB / 377.5 MB, free: 43.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005274/0.5804, allocations: 98.83 kB / 377.6 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004756/0.5809, allocations: 67.23 kB / 377.6 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006962/0.5816, allocations: 232.1 kB / 377.9 MB, free: 42.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002972/0.5819, allocations: 73.08 kB / 377.9 MB, free: 42.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000337/0.5823, allocations: 107.1 kB / 378 MB, free: 42.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003194/0.5826, allocations: 132.2 kB / 378.2 MB, free: 42.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.807e-05/0.5827, allocations: 15.81 kB / 378.2 MB, free: 42.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001013/0.5829, allocations: 14.88 kB / 378.2 MB, free: 42.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.91e-05/0.583, allocations: 50.16 kB / 378.3 MB, free: 42.6 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001275/0.5831, allocations: 74.11 kB / 378.3 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000469/0.5836, allocations: 235.4 kB / 378.6 MB, free: 42.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.5836, allocations: 0 / 378.6 MB, free: 42.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.5837, allocations: 0.9375 kB / 378.6 MB, free: 42.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.5837, allocations: 0 / 378.6 MB, free: 42.37 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.002409/0.5861, allocations: 0.6136 MB / 379.2 MB, free: 41.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.021e-05/0.5862, allocations: 8.812 kB / 379.2 MB, free: 41.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001817/0.5864, allocations: 31.09 kB / 379.2 MB, free: 41.81 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006081/0.587, allocations: 279.5 kB / 379.5 MB, free: 41.53 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.228e-05/0.5871, allocations: 13.38 kB / 379.5 MB, free: 41.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.095e-05/0.5872, allocations: 20.81 kB / 379.5 MB, free: 41.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/0.5887, allocations: 268.3 kB / 379.8 MB, free: 41.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.548e-05/0.5887, allocations: 0 / 379.8 MB, free: 41.36 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.896e-05/0.5888, allocations: 14.66 kB / 379.8 MB, free: 41.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.704e-05/0.5889, allocations: 8.844 kB / 379.8 MB, free: 41.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001939/0.5908, allocations: 270.8 kB / 380.1 MB, free: 41.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003526/0.5944, allocations: 0.8981 MB / 381 MB, free: 40.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002154/0.5966, allocations: 274 kB / 381.2 MB, free: 40.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.325e-05/0.5967, allocations: 6.047 kB / 381.2 MB, free: 40.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001168/0.5979, allocations: 191.5 kB / 381.4 MB, free: 40.22 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 4.007e-06/0.598, allocations: 0 / 381.4 MB, free: 40.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.006329/0.6043, allocations: 0.7525 MB / 382.2 MB, free: 39.85 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.437e-05/0.6044, allocations: 109.4 kB / 382.3 MB, free: 39.72 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000634/0.6051, allocations: 269.6 kB / 382.5 MB, free: 39.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.172e-05/0.6052, allocations: 27.8 kB / 382.6 MB, free: 39.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001835/0.6054, allocations: 232.5 kB / 382.8 MB, free: 39.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.145e-05/0.6055, allocations: 41.31 kB / 382.8 MB, free: 39.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.136e-05/0.6055, allocations: 5.438 kB / 382.8 MB, free: 39.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.34e-05/0.6056, allocations: 324.5 kB / 383.2 MB, free: 38.92 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000944/0.6066, allocations: 110.7 kB / 383.3 MB, free: 38.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001005/0.6076, allocations: 195.7 kB / 383.5 MB, free: 38.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009613/0.6086, allocations: 149 kB / 383.6 MB, free: 38.65 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.126e-06/0.6086, allocations: 1.188 kB / 383.6 MB, free: 38.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.003148/0.6118, allocations: 472.2 kB / 384.1 MB, free: 38.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003284/0.6122, allocations: 0.8175 MB / 384.9 MB, free: 37.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.6122, allocations: 2.688 kB / 384.9 MB, free: 37.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008578/0.6131, allocations: 87.05 kB / 385 MB, free: 37.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005709/0.6137, allocations: 49.78 kB / 385 MB, free: 37.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006385/0.6201, allocations: 1.893 MB / 386.9 MB, free: 35.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009425/0.6211, allocations: 65.02 kB / 387 MB, free: 35.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.793e-05/0.6212, allocations: 7.219 kB / 387 MB, free: 35.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.6213, allocations: 4.469 kB / 387 MB, free: 35.82 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00178/0.6231, allocations: 313.2 kB / 387.3 MB, free: 35.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.6231, allocations: 4 kB / 387.3 MB, free: 35.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001631/0.6233, allocations: 28.83 kB / 387.3 MB, free: 35.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005307/0.6239, allocations: 60.06 kB / 387.4 MB, free: 35.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001384/0.6253, allocations: 1.315 MB / 388.7 MB, free: 33.99 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005575/0.6259, allocations: 43.81 kB / 388.7 MB, free: 33.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.822e-05/0.6259, allocations: 8 kB / 388.8 MB, free: 33.94 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003235/0.6263, allocations: 216.9 kB / 389 MB, free: 33.72 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.6264, allocations: 23.72 kB / 389 MB, free: 33.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.417e-05/0.6265, allocations: 25.89 kB / 389 MB, free: 33.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.6265, allocations: 7.953 kB / 389 MB, free: 33.67 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.361e-06/0.6265, allocations: 3.938 kB / 389 MB, free: 33.67 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.6266, allocations: 0 / 389 MB, free: 33.67 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004993/0.6271, allocations: 297.4 kB / 389.3 MB, free: 33.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.6271, allocations: 0 / 389.3 MB, free: 33.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003502/0.6275, allocations: 31.97 kB / 389.3 MB, free: 33.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007336/0.6282, allocations: 81.08 kB / 389.4 MB, free: 33.21 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.621e-05/0.6283, allocations: 0 / 389.4 MB, free: 33.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005019/0.6333, allocations: 1.795 MB / 391.2 MB, free: 31.29 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.6334, allocations: 4.062 kB / 391.2 MB, free: 31.28 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00266/0.6361, allocations: 393.4 kB / 391.6 MB, free: 30.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001846/0.6363, allocations: 104.8 kB / 391.7 MB, free: 30.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.6364, allocations: 7.984 kB / 391.7 MB, free: 30.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006825/0.6371, allocations: 39.97 kB / 391.8 MB, free: 30.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001953/0.6374, allocations: 19.97 kB / 391.8 MB, free: 30.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.014e-05/0.6374, allocations: 7.938 kB / 391.8 MB, free: 30.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003979/0.6378, allocations: 194 kB / 392 MB, free: 30.49 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.6378, allocations: 0 / 392 MB, free: 30.49 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001313/0.6392, allocations: 123.8 kB / 392.1 MB, free: 30.37 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002193/0.6394, allocations: 95.25 kB / 392.2 MB, free: 30.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004186/0.6436, allocations: 0.805 MB / 393 MB, free: 29.41 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/0.6437, allocations: 0 / 393 MB, free: 29.41 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001152/0.6449, allocations: 254.8 kB / 393.2 MB, free: 29.15 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007293/0.6456, allocations: 44.31 kB / 393.3 MB, free: 29.11 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007362/0.653, allocations: 1.067 MB / 394.4 MB, free: 28.01 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003217/0.6534, allocations: 0.7522 MB / 395.1 MB, free: 27.23 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001784/0.6536, allocations: 23.44 kB / 395.1 MB, free: 27.21 MB / 298.7 MB Notification: Performance of SimCode: time 1.463e-06/0.6536, allocations: 3.938 kB / 395.1 MB, free: 27.2 MB / 298.7 MB Notification: Performance of Templates: time 0.01317/0.6668, allocations: 4.086 MB / 399.2 MB, free: 23.14 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTriggerCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTriggerCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTriggerCalcHelperMain.cpp:31:\n./OMCppModelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTriggerJacobian.cpp:74:24: error: use of undeclared identifier \'__HOM_LAMBDA_\'\n _NLSJac0jac_y(0) = ((__HOM_LAMBDA_ * tmp30) - _NLSJac0jac_tmp(2));\n ^\n1 error generated.\n: recipe for target \'OMCppModelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTriggerCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTriggerCalcHelperMain.o] Error 1\n'