Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|c.v|opAmp1.out.v|opAmp1.out.i|opAmp2.out.v|opAmp2.out.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|c.v|opAmp1.out.v|opAmp1.out.i|opAmp2.out.v|opAmp2.out.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00096/0.00096, allocations: 199.9 kB / 17.38 MB, free: 4.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 226.5 MB / 244.7 MB, free: 6.34 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007766/0.0007766, allocations: 105 kB / 296.8 MB, free: 6.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002301/0.0002302, allocations: 4 kB / 356.8 MB, free: 10.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2073/0.2075, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator): time 0.002179/0.2097, allocations: 2.514 MB / 410.6 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009252/0.2107, allocations: 0.7248 MB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.2108, allocations: 4 kB / 411.3 MB, free: 24.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001272/0.211, allocations: 47.62 kB / 411.3 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.2111, allocations: 82.2 kB / 411.4 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002157/0.2113, allocations: 91.83 kB / 411.5 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000273/0.2116, allocations: 374.3 kB / 411.9 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.2118, allocations: 112.2 kB / 412 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.2119, allocations: 123.5 kB / 412.1 MB, free: 23.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001339/0.2121, allocations: 147.2 kB / 412.3 MB, free: 23.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.486e-05/0.2121, allocations: 20 kB / 412.3 MB, free: 23.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.902e-05/0.2122, allocations: 16 kB / 412.3 MB, free: 23.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.633e-05/0.2122, allocations: 55.75 kB / 412.3 MB, free: 23.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.2123, allocations: 169 kB / 412.5 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001821/0.2125, allocations: 286.2 kB / 412.8 MB, free: 22.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.2125, allocations: 0 / 412.8 MB, free: 22.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.083e-06/0.2125, allocations: 0 / 412.8 MB, free: 22.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.2125, allocations: 0 / 412.8 MB, free: 22.93 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: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.0007689/0.2133, allocations: 0.5964 MB / 413.4 MB, free: 22.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.2134, allocations: 12.03 kB / 413.4 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.739e-05/0.2134, allocations: 32.56 kB / 413.4 MB, free: 22.24 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002643/0.2137, allocations: 283.5 kB / 413.7 MB, free: 21.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.2137, allocations: 29.02 kB / 413.7 MB, free: 21.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.538e-05/0.2138, allocations: 28.38 kB / 413.8 MB, free: 21.87 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005611/0.2143, allocations: 349.4 kB / 414.1 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.2144, allocations: 0 / 414.1 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.024e-05/0.2144, allocations: 12 kB / 414.1 MB, free: 21.51 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.186e-06/0.2144, allocations: 8 kB / 414.1 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005546/0.215, allocations: 294.4 kB / 414.4 MB, free: 21.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001485/0.2165, allocations: 1.19 MB / 415.6 MB, free: 19.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007324/0.2172, allocations: 314.2 kB / 415.9 MB, free: 19.63 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003589/0.2176, allocations: 183.2 kB / 416.1 MB, free: 19.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.2176, allocations: 11.94 kB / 416.1 MB, free: 19.44 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.53e-05/0.2176, allocations: 34.56 kB / 416.1 MB, free: 19.4 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.373e-06/0.2176, allocations: 0 / 416.1 MB, free: 19.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.002119/0.2198, allocations: 0.9069 MB / 417 MB, free: 18.44 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.186e-05/0.2198, allocations: 59.34 kB / 417.1 MB, free: 18.37 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.22, allocations: 274.5 kB / 417.4 MB, free: 18.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.22, allocations: 29.7 kB / 417.4 MB, free: 18.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.038e-05/0.2201, allocations: 203.8 kB / 417.6 MB, free: 17.85 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.953e-05/0.2202, allocations: 63.09 kB / 417.7 MB, free: 17.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.281e-05/0.2202, allocations: 8 kB / 417.7 MB, free: 17.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.126e-05/0.2203, allocations: 338.8 kB / 418 MB, free: 17.44 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.2205, allocations: 103.9 kB / 418.1 MB, free: 17.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002453/0.2207, allocations: 192.8 kB / 418.3 MB, free: 17.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004678/0.2212, allocations: 312.5 kB / 418.6 MB, free: 16.76 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.2212, allocations: 4 kB / 418.6 MB, free: 16.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001124/0.2224, allocations: 0.5571 MB / 419.1 MB, free: 16.19 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.375e-05/0.2224, allocations: 176.3 kB / 419.3 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.2225, allocations: 4 kB / 419.3 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004874/0.223, allocations: 161.5 kB / 419.5 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001662/0.2231, allocations: 51.92 kB / 419.5 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003601/0.2267, allocations: 3.471 MB / 423 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002378/0.227, allocations: 55.73 kB / 423.1 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.778e-05/0.227, allocations: 12 kB / 423.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.762e-06/0.227, allocations: 4 kB / 423.1 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006901/0.2277, allocations: 369.3 kB / 423.4 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.2277, allocations: 4 kB / 423.4 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000224/0.228, allocations: 89.75 kB / 423.5 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001727/0.2282, allocations: 59.91 kB / 423.6 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001856/0.23, allocations: 2.831 MB / 426.4 MB, free: 8.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000181/0.2302, allocations: 27.83 kB / 426.4 MB, free: 8.293 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.52e-05/0.2302, allocations: 12 kB / 426.5 MB, free: 8.281 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001306/0.2304, allocations: 224.9 kB / 426.7 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.471e-05/0.2304, allocations: 27.62 kB / 426.7 MB, free: 8.023 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.676e-05/0.2305, allocations: 30.17 kB / 426.7 MB, free: 7.992 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.2305, allocations: 0 / 426.7 MB, free: 7.992 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.2305, allocations: 4.062 kB / 426.7 MB, free: 7.988 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2305, allocations: 7.938 kB / 426.7 MB, free: 7.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001303/0.2318, allocations: 0.8422 MB / 427.6 MB, free: 7.078 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.2318, allocations: 4 kB / 427.6 MB, free: 7.074 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.2319, allocations: 27.98 kB / 427.6 MB, free: 7.047 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003828/0.2323, allocations: 149.5 kB / 427.8 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.2324, allocations: 8 kB / 427.8 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002818/0.2352, allocations: 3.233 MB / 431 MB, free: 3.383 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.2352, allocations: 7.984 kB / 431 MB, free: 3.375 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.2364, allocations: 0.6411 MB / 431.6 MB, free: 2.711 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.01e-05/0.2364, allocations: 108.8 kB / 431.8 MB, free: 2.586 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.712e-05/0.2365, allocations: 3.938 kB / 431.8 MB, free: 2.582 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002098/0.2367, allocations: 36.05 kB / 431.8 MB, free: 2.547 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.422e-05/0.2368, allocations: 19.97 kB / 431.8 MB, free: 2.527 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.2368, allocations: 4 kB / 431.8 MB, free: 2.523 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001335/0.2369, allocations: 194 kB / 432 MB, free: 2.336 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2369, allocations: 0 / 432 MB, free: 2.336 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000596/0.2375, allocations: 159.5 kB / 432.2 MB, free: 2.18 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (c.v) * 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001176/0.2377, allocations: 103.2 kB / 432.3 MB, free: 2.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001271/0.2389, allocations: 0.9179 MB / 433.2 MB, free: 1.102 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.239, allocations: 4.062 kB / 433.2 MB, free: 1.098 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003554/0.2393, allocations: 352.4 kB / 433.5 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003931/0.2397, allocations: 59.52 kB / 433.6 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009706/0.2407, allocations: 0.7408 MB / 434.3 MB, free: 15.9 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002966/0.241, allocations: 0.7687 MB / 435.1 MB, free: 15.1 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.1e-05/0.2411, allocations: 23.44 kB / 435.1 MB, free: 15.08 MB / 314.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2411, allocations: 0 / 435.1 MB, free: 15.08 MB / 314.7 MB Notification: Performance of Templates: time 0.006832/0.2479, allocations: 5.69 MB / 440.8 MB, free: 9.391 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/SignalGenerator/SignalGenerator.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,c.v,opAmp1.out.v,opAmp1.out.i,opAmp2.out.v,opAmp2.out.i Variables in the result:c.v,opAmp1.out.i,opAmp1.out.v,opAmp2.out.i,opAmp2.out.v,time