Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Adder.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.Adder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Adder") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Adder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Adder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001307/0.001307, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 226.6 MB / 244.3 MB, free: 8.293 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007698/0.0007698, allocations: 108.4 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002178/0.0002178, allocations: 11.94 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2171/0.2173, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Adder): time 0.002271/0.2196, allocations: 2.724 MB / 410.2 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009051/0.2205, allocations: 0.7609 MB / 411 MB, free: 24.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.2207, allocations: 8.688 kB / 411 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001183/0.2208, allocations: 43.69 kB / 411 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001627/0.221, allocations: 88.89 kB / 411.1 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002099/0.2212, allocations: 84.91 kB / 411.2 MB, free: 24.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002482/0.2215, allocations: 402 kB / 411.6 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001998/0.2217, allocations: 116.8 kB / 411.7 MB, free: 23.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001779/0.2219, allocations: 135.4 kB / 411.9 MB, free: 23.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.222, allocations: 155.2 kB / 412 MB, free: 23.33 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.579e-05/0.222, allocations: 16 kB / 412 MB, free: 23.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.113e-05/0.2221, allocations: 24 kB / 412 MB, free: 23.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.554e-05/0.2222, allocations: 63.69 kB / 412.1 MB, free: 23.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.036e-05/0.2222, allocations: 89.52 kB / 412.2 MB, free: 23.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002391/0.2225, allocations: 395.8 kB / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.2225, allocations: 4 kB / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2225, allocations: 3.938 kB / 412.6 MB, free: 22.74 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.2225, allocations: 0 / 412.6 MB, free: 22.74 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0007948/0.2233, allocations: 0.6119 MB / 413.2 MB, free: 22.08 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.2233, allocations: 12.03 kB / 413.2 MB, free: 22.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/0.2235, allocations: 51.52 kB / 413.3 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/0.2238, allocations: 294.4 kB / 413.5 MB, free: 21.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.2238, allocations: 24.66 kB / 413.6 MB, free: 21.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.273e-05/0.2238, allocations: 36 kB / 413.6 MB, free: 21.63 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005315/0.2244, allocations: 345.1 kB / 413.9 MB, free: 21.29 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.2244, allocations: 0 / 413.9 MB, free: 21.29 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.75e-05/0.2244, allocations: 8 kB / 414 MB, free: 21.28 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.2244, allocations: 8 kB / 414 MB, free: 21.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005207/0.225, allocations: 282.4 kB / 414.2 MB, free: 20.99 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001551/0.2265, allocations: 1.292 MB / 415.5 MB, free: 19.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004956/0.227, allocations: 307.7 kB / 415.8 MB, free: 19.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001844/0.2272, allocations: 96.83 kB / 415.9 MB, free: 19.19 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.793e-05/0.2272, allocations: 0 / 415.9 MB, free: 19.19 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.904e-05/0.2273, allocations: 46.48 kB / 416 MB, free: 19.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.002e-06/0.2273, allocations: 0 / 416 MB, free: 19.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.001913/0.2292, allocations: 0.6817 MB / 416.7 MB, free: 18.43 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.118e-05/0.2292, allocations: 55.34 kB / 416.7 MB, free: 18.36 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002219/0.2295, allocations: 294.9 kB / 417 MB, free: 18.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.347e-05/0.2295, allocations: 25.7 kB / 417 MB, free: 18.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.521e-05/0.2296, allocations: 215.8 kB / 417.2 MB, free: 17.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.498e-05/0.2296, allocations: 51.28 kB / 417.3 MB, free: 17.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.077e-06/0.2296, allocations: 4 kB / 417.3 MB, free: 17.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.404e-05/0.2297, allocations: 342.8 kB / 417.6 MB, free: 17.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001801/0.2298, allocations: 79.95 kB / 417.7 MB, free: 17.35 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001946/0.23, allocations: 166.2 kB / 417.9 MB, free: 17.15 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001935/0.2302, allocations: 95.92 kB / 418 MB, free: 17.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2303, allocations: 7.938 kB / 418 MB, free: 17.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008348/0.2311, allocations: 432.8 kB / 418.4 MB, free: 16.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.2311, allocations: 4 kB / 418.4 MB, free: 16.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.2311, allocations: 4 kB / 418.4 MB, free: 16.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003795/0.2315, allocations: 108.8 kB / 418.5 MB, free: 16.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.2317, allocations: 43.92 kB / 418.5 MB, free: 16.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002177/0.2339, allocations: 1.991 MB / 420.5 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002021/0.2341, allocations: 43.67 kB / 420.6 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.2341, allocations: 8 kB / 420.6 MB, free: 14.28 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (22): * Single equations (assignments): 21 * 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: 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001141/0.2342, allocations: 149.9 kB / 420.7 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.337e-05/0.2343, allocations: 31.58 kB / 420.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.907e-05/0.2343, allocations: 33.84 kB / 420.8 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.2343, allocations: 0 / 420.8 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.2343, allocations: 0 / 420.8 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2343, allocations: 0 / 420.8 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/0.2354, allocations: 0.7449 MB / 421.5 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2354, allocations: 0 / 421.5 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.904e-05/0.2355, allocations: 15.98 kB / 421.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002945/0.2358, allocations: 104.8 kB / 421.7 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.2358, allocations: 7.953 kB / 421.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001998/0.2378, allocations: 1.983 MB / 423.6 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2378, allocations: 4.062 kB / 423.6 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000734/0.2385, allocations: 423.9 kB / 424.1 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.499e-05/0.2386, allocations: 108.7 kB / 424.2 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.72e-05/0.2386, allocations: 7.953 kB / 424.2 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002005/0.2388, allocations: 23.98 kB / 424.2 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.536e-05/0.2389, allocations: 11.98 kB / 424.2 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/0.2389, allocations: 4 kB / 424.2 MB, free: 10.4 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000153/0.2391, allocations: 221.9 kB / 424.4 MB, free: 10.18 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2391, allocations: 0 / 424.4 MB, free: 10.18 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003984/0.2395, allocations: 83.84 kB / 424.5 MB, free: 10.1 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 7 * 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: 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 9.542e-05/0.2396, allocations: 99.25 kB / 424.6 MB, free: 9.992 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005986/0.2402, allocations: 357.5 kB / 425 MB, free: 9.633 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.2402, allocations: 0 / 425 MB, free: 9.633 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000288/0.2405, allocations: 235.2 kB / 425.2 MB, free: 9.391 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000352/0.2408, allocations: 44.83 kB / 425.2 MB, free: 9.344 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000915/0.2418, allocations: 0.6853 MB / 425.9 MB, free: 8.625 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00016/0.2419, allocations: 0.7679 MB / 426.7 MB, free: 7.832 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.954e-05/0.242, allocations: 23.42 kB / 426.7 MB, free: 7.809 MB / 298.7 MB Notification: Performance of SimCode: time 3.41e-07/0.242, allocations: 4 kB / 426.7 MB, free: 7.805 MB / 298.7 MB Notification: Performance of Templates: time 0.004732/0.2467, allocations: 4.672 MB / 431.4 MB, free: 3.141 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Adder.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Adder.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Adder --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Adder/Adder.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Adder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches