Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001031/0.001032, allocations: 199.3 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.283/1.283, allocations: 226.5 MB / 244.7 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007669/0.0007669, allocations: 106.5 kB / 296.8 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000331/0.0003313, allocations: 8 kB / 356.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.2079, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.002481/0.2104, allocations: 2.902 MB / 411 MB, free: 24.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001211/0.2116, allocations: 0.7966 MB / 411.8 MB, free: 24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002489/0.2119, allocations: 9.219 kB / 411.8 MB, free: 23.99 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001688/0.2121, allocations: 47.61 kB / 411.8 MB, free: 23.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002361/0.2123, allocations: 100.4 kB / 411.9 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002698/0.2126, allocations: 89.2 kB / 412 MB, free: 23.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003636/0.213, allocations: 458 kB / 412.4 MB, free: 23.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002185/0.2132, allocations: 141.7 kB / 412.6 MB, free: 23.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002115/0.2134, allocations: 155.4 kB / 412.7 MB, free: 23.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001571/0.2136, allocations: 175.2 kB / 412.9 MB, free: 22.85 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.109e-05/0.2136, allocations: 20 kB / 412.9 MB, free: 22.83 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.484e-05/0.2137, allocations: 24 kB / 413 MB, free: 22.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.24e-05/0.2138, allocations: 67.62 kB / 413 MB, free: 22.74 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001229/0.2139, allocations: 204.8 kB / 413.2 MB, free: 22.53 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002614/0.2142, allocations: 443.7 kB / 413.7 MB, free: 22.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.2142, allocations: 0 / 413.7 MB, free: 22.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2142, allocations: 3.938 kB / 413.7 MB, free: 22.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.2142, allocations: 0 / 413.7 MB, free: 22.09 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0008596/0.2151, allocations: 0.6435 MB / 414.3 MB, free: 21.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.2151, allocations: 12.03 kB / 414.3 MB, free: 21.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/0.2153, allocations: 52.45 kB / 414.4 MB, free: 21.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002875/0.2156, allocations: 320.6 kB / 414.7 MB, free: 20.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.2156, allocations: 25.38 kB / 414.7 MB, free: 20.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.474e-05/0.2156, allocations: 40.12 kB / 414.7 MB, free: 20.92 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005645/0.2162, allocations: 394.1 kB / 415.1 MB, free: 20.53 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.2162, allocations: 0 / 415.1 MB, free: 20.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.079e-05/0.2163, allocations: 12 kB / 415.1 MB, free: 20.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.2163, allocations: 8 kB / 415.1 MB, free: 20.51 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005271/0.2168, allocations: 307.9 kB / 415.4 MB, free: 20.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00174/0.2186, allocations: 1.467 MB / 416.9 MB, free: 18.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005242/0.2191, allocations: 242.8 kB / 417.1 MB, free: 18.4 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001849/0.2193, allocations: 100.8 kB / 417.2 MB, free: 18.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.2193, allocations: 0 / 417.2 MB, free: 18.3 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.86e-05/0.2194, allocations: 42.48 kB / 417.3 MB, free: 18.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 9.91e-07/0.2194, allocations: 0 / 417.3 MB, free: 18.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.001941/0.2213, allocations: 0.8094 MB / 418.1 MB, free: 17.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.101e-05/0.2213, allocations: 59.41 kB / 418.2 MB, free: 17.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002575/0.2216, allocations: 307.3 kB / 418.5 MB, free: 17.01 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.53e-05/0.2216, allocations: 25.7 kB / 418.5 MB, free: 16.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.69e-05/0.2217, allocations: 231.6 kB / 418.7 MB, free: 16.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.811e-05/0.2218, allocations: 59.19 kB / 418.8 MB, free: 16.69 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.192e-05/0.2218, allocations: 4 kB / 418.8 MB, free: 16.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.225e-05/0.2218, allocations: 342.8 kB / 419.1 MB, free: 16.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001815/0.222, allocations: 83.95 kB / 419.2 MB, free: 16.26 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001962/0.2222, allocations: 165.3 kB / 419.3 MB, free: 16.06 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003682/0.2226, allocations: 251.7 kB / 419.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.2226, allocations: 7.938 kB / 419.6 MB, free: 15.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008327/0.2235, allocations: 445.8 kB / 420 MB, free: 15.33 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.2235, allocations: 8 kB / 420 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.2235, allocations: 64 / 420 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003968/0.2239, allocations: 129.6 kB / 420.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.2241, allocations: 47.92 kB / 420.2 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002874/0.2269, allocations: 3.306 MB / 423.5 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002112/0.2272, allocations: 47.61 kB / 423.6 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.778e-05/0.2272, allocations: 12 kB / 423.6 MB, free: 11.52 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (23): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.000132/0.2273, allocations: 153.7 kB / 423.7 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.574e-05/0.2274, allocations: 27.72 kB / 423.8 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.453e-05/0.2274, allocations: 30.36 kB / 423.8 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.2274, allocations: 4 kB / 423.8 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2275, allocations: 0 / 423.8 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.2275, allocations: 0 / 423.8 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002834/0.2278, allocations: 373.2 kB / 424.2 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2278, allocations: 0 / 424.2 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.431e-05/0.2278, allocations: 12 kB / 424.2 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003049/0.2282, allocations: 121.6 kB / 424.3 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.2282, allocations: 4 kB / 424.3 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002337/0.2305, allocations: 3.198 MB / 427.5 MB, free: 7.273 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.2305, allocations: 3.984 kB / 427.5 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009087/0.2315, allocations: 460.5 kB / 427.9 MB, free: 6.797 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.681e-05/0.2315, allocations: 104.8 kB / 428 MB, free: 6.676 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.828e-05/0.2316, allocations: 0 / 428 MB, free: 6.676 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002087/0.2318, allocations: 31.98 kB / 428.1 MB, free: 6.645 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.494e-05/0.2318, allocations: 15.97 kB / 428.1 MB, free: 6.629 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.2318, allocations: 8 kB / 428.1 MB, free: 6.621 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001702/0.232, allocations: 217.9 kB / 428.3 MB, free: 6.406 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.232, allocations: 0 / 428.3 MB, free: 6.406 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000452/0.2325, allocations: 103.7 kB / 428.4 MB, free: 6.305 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 (9): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000134/0.2326, allocations: 103.2 kB / 428.5 MB, free: 6.195 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009773/0.2336, allocations: 0.5285 MB / 429 MB, free: 5.641 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.2336, allocations: 3.938 kB / 429 MB, free: 5.637 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003421/0.234, allocations: 349.6 kB / 429.4 MB, free: 5.27 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004244/0.2344, allocations: 48.52 kB / 429.4 MB, free: 5.223 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009136/0.2353, allocations: 0.7171 MB / 430.2 MB, free: 4.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001775/0.2355, allocations: 0.7794 MB / 430.9 MB, free: 3.676 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.789e-05/0.2356, allocations: 23.44 kB / 431 MB, free: 3.652 MB / 298.7 MB Notification: Performance of SimCode: time 9.52e-07/0.2356, allocations: 0 / 431 MB, free: 3.652 MB / 298.7 MB Notification: Performance of Templates: time 0.006919/0.2425, allocations: 6.667 MB / 437.6 MB, free: 13 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches