Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001267/0.001267, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 63.77 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.1491, allocations: 50.54 MB / 358.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.007534/0.1567, allocations: 3.373 MB / 362.3 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002055/0.1588, allocations: 0.8649 MB / 363.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002295/0.1591, allocations: 11.94 kB / 363.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002695/0.1594, allocations: 67.36 kB / 363.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002648/0.1597, allocations: 119 kB / 363.3 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004846/0.1602, allocations: 151.7 kB / 363.5 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000651/0.1608, allocations: 0.4941 MB / 364 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004401/0.1613, allocations: 173 kB / 364.2 MB, free: 8.035 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003935/0.1617, allocations: 191.4 kB / 364.3 MB, free: 7.848 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003131/0.162, allocations: 199.1 kB / 364.5 MB, free: 7.652 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.33e-05/0.1621, allocations: 48 kB / 364.6 MB, free: 7.605 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001437/0.1623, allocations: 55.98 kB / 364.6 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001133/0.1624, allocations: 103.6 kB / 364.7 MB, free: 7.449 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002654/0.1626, allocations: 219 kB / 365 MB, free: 7.234 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007436/0.1634, allocations: 0.5684 MB / 365.5 MB, free: 6.664 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.185e-05/0.1634, allocations: 0 / 365.5 MB, free: 6.664 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.807e-06/0.1634, allocations: 7.938 kB / 365.5 MB, free: 6.656 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.1635, allocations: 0 / 365.5 MB, free: 6.656 MB / 302.1 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.001513/0.165, allocations: 0.6941 MB / 366.2 MB, free: 5.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.759e-05/0.1651, allocations: 8.031 kB / 366.2 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002917/0.1654, allocations: 56.36 kB / 366.3 MB, free: 5.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007247/0.1661, allocations: 320.6 kB / 366.6 MB, free: 5.492 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.746e-05/0.1661, allocations: 29.38 kB / 366.6 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.5e-05/0.1662, allocations: 36.12 kB / 366.7 MB, free: 5.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007647/0.167, allocations: 390.2 kB / 367 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.167, allocations: 0 / 367 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.023e-05/0.167, allocations: 16 kB / 367.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/0.1671, allocations: 8 kB / 367.1 MB, free: 5.012 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006657/0.1677, allocations: 311.8 kB / 367.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002322/0.1701, allocations: 1.439 MB / 368.8 MB, free: 3.176 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006232/0.1707, allocations: 234.7 kB / 369 MB, free: 2.938 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002094/0.1709, allocations: 92.81 kB / 369.1 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.401e-05/0.171, allocations: 8 kB / 369.1 MB, free: 2.836 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.171, allocations: 38.55 kB / 369.2 MB, free: 2.789 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.393e-06/0.171, allocations: 0 / 369.2 MB, free: 2.789 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002212/0.1732, allocations: 0.7509 MB / 369.9 MB, free: 1.988 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.1733, allocations: 55.41 kB / 370 MB, free: 1.922 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003902/0.1737, allocations: 320.4 kB / 370.3 MB, free: 1.605 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.1737, allocations: 25.7 kB / 370.3 MB, free: 1.574 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/0.1739, allocations: 227.7 kB / 370.5 MB, free: 1.348 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.992e-05/0.174, allocations: 55.2 kB / 370.6 MB, free: 1.293 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.818e-05/0.1741, allocations: 57.61 kB / 370.7 MB, free: 1.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002015/0.1743, allocations: 334.8 kB / 371 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002841/0.1746, allocations: 79.95 kB / 371.1 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003218/0.1749, allocations: 169.3 kB / 371.2 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004607/0.1754, allocations: 255.5 kB / 371.5 MB, free: 344 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1754, allocations: 0 / 371.5 MB, free: 344 kB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.2039/0.3793, allocations: 417.5 kB / 371.9 MB, free: 19.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.982e-05/0.3794, allocations: 7.922 kB / 371.9 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.3794, allocations: 2.469 kB / 371.9 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005525/0.38, allocations: 120.6 kB / 372 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000209/0.3802, allocations: 40.25 kB / 372 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003756/0.3839, allocations: 3.563 MB / 375.6 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000258/0.3842, allocations: 36.52 kB / 375.6 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.262e-05/0.3842, allocations: 11.94 kB / 375.7 MB, free: 17.01 MB / 302.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.000169/0.3844, allocations: 162 kB / 375.8 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.597e-05/0.3845, allocations: 30.56 kB / 375.8 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.687e-05/0.3845, allocations: 29.84 kB / 375.9 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.3846, allocations: 1 kB / 375.9 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.3846, allocations: 1.859 kB / 375.9 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3846, allocations: 4.438 kB / 375.9 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00039/0.385, allocations: 368.8 kB / 376.2 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.385, allocations: 4.797 kB / 376.2 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.5e-05/0.3851, allocations: 16.91 kB / 376.3 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003536/0.3854, allocations: 107.1 kB / 376.4 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.3855, allocations: 10.19 kB / 376.4 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002998/0.3885, allocations: 3.465 MB / 379.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3885, allocations: 1.391 kB / 379.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008531/0.3893, allocations: 438.2 kB / 380.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.189e-05/0.3894, allocations: 105.8 kB / 380.4 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.263e-05/0.3895, allocations: 4.656 kB / 380.4 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002252/0.3897, allocations: 25.53 kB / 380.4 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.335e-05/0.3897, allocations: 19.31 kB / 380.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.514e-05/0.3898, allocations: 5.438 kB / 380.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002391/0.39, allocations: 225.5 kB / 380.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.39, allocations: 0 / 380.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005416/0.3906, allocations: 103.3 kB / 380.8 MB, free: 13.12 MB / 302.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001297/0.3907, allocations: 113.7 kB / 380.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.3918, allocations: 0.5152 MB / 381.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3918, allocations: 0 / 381.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003734/0.3922, allocations: 344.4 kB / 381.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004025/0.3926, allocations: 51.33 kB / 381.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001028/0.3936, allocations: 0.5733 MB / 382.3 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001967/0.3938, allocations: 0.776 MB / 383.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.513e-05/0.3939, allocations: 27.92 kB / 383.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.561e-05/0.394, allocations: 23.02 kB / 383.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.394, allocations: 0 / 383.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of Templates: time 0.008732/0.4027, allocations: 3.942 MB / 387.1 MB, free: 11.16 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches