Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.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.DifferentialAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|opAmp.v_out|rootMeanSquare.mean.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|opAmp.v_out|rootMeanSquare.mean.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001172/0.001172, allocations: 116.9 kB / 18.4 MB, free: 4.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001227/0.001227, allocations: 204.5 kB / 19.35 MB, free: 3.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001176, allocations: 68.3 kB / 308.4 MB, free: 15.84 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08219/0.08338, allocations: 50.53 MB / 358.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.005127/0.08855, allocations: 4.476 MB / 363.4 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002102/0.09067, allocations: 1.293 MB / 364.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003853/0.09108, allocations: 15.94 kB / 364.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004355/0.09154, allocations: 134.8 kB / 364.8 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005161/0.09207, allocations: 206.2 kB / 365 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00048/0.09256, allocations: 215.6 kB / 365.2 MB, free: 6.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007628/0.09333, allocations: 0.7668 MB / 366 MB, free: 6.156 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003632/0.0937, allocations: 266.5 kB / 366.3 MB, free: 5.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004027/0.09411, allocations: 294.9 kB / 366.6 MB, free: 5.602 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003742/0.0945, allocations: 330.5 kB / 366.9 MB, free: 5.277 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.876e-05/0.09458, allocations: 64 kB / 366.9 MB, free: 5.215 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001132/0.0947, allocations: 68 kB / 367 MB, free: 5.148 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.09482, allocations: 155.4 kB / 367.2 MB, free: 4.996 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002679/0.09509, allocations: 342.3 kB / 367.5 MB, free: 4.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005847/0.09568, allocations: 0.7473 MB / 368.2 MB, free: 3.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.09569, allocations: 0 / 368.2 MB, free: 3.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.707e-06/0.0957, allocations: 0 / 368.2 MB, free: 3.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.096e-05/0.09572, allocations: 7.938 kB / 368.2 MB, free: 3.902 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001466/0.09719, allocations: 0.9625 MB / 369.2 MB, free: 2.891 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.09723, allocations: 12.03 kB / 369.2 MB, free: 2.879 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002608/0.0975, allocations: 96.08 kB / 369.3 MB, free: 2.785 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004708/0.09798, allocations: 425.8 kB / 369.7 MB, free: 2.328 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.829e-05/0.09802, allocations: 37.69 kB / 369.8 MB, free: 2.293 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.843e-05/0.09809, allocations: 56.38 kB / 369.8 MB, free: 2.238 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008506/0.09895, allocations: 0.5497 MB / 370.4 MB, free: 1.676 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.09897, allocations: 3.906 kB / 370.4 MB, free: 1.672 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.535e-05/0.09902, allocations: 24 kB / 370.4 MB, free: 1.648 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.418e-05/0.09904, allocations: 19.98 kB / 370.4 MB, free: 1.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007954/0.09984, allocations: 421 kB / 370.8 MB, free: 1.215 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1406/0.2405, allocations: 1.802 MB / 372.6 MB, free: 19.33 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007242/0.2412, allocations: 0.5334 MB / 373.2 MB, free: 19.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008951/0.2421, allocations: 426.2 kB / 373.6 MB, free: 19.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-05/0.2422, allocations: 9.531 kB / 373.6 MB, free: 19.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004758/0.2426, allocations: 301.4 kB / 373.9 MB, free: 19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.533e-06/0.2427, allocations: 0 / 373.9 MB, free: 19 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.003779/0.2464, allocations: 1.309 MB / 375.2 MB, free: 18.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.664e-05/0.2465, allocations: 246.2 kB / 375.4 MB, free: 18.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004249/0.2469, allocations: 435.3 kB / 375.9 MB, free: 18.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/0.247, allocations: 36.45 kB / 375.9 MB, free: 18.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.2472, allocations: 312.3 kB / 376.2 MB, free: 18.06 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.249e-05/0.2472, allocations: 142.7 kB / 376.3 MB, free: 17.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001226/0.2474, allocations: 95.52 kB / 376.4 MB, free: 17.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.007e-05/0.2474, allocations: 357 kB / 376.8 MB, free: 17.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003144/0.2478, allocations: 150.9 kB / 376.9 MB, free: 17.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003976/0.2482, allocations: 326.9 kB / 377.2 MB, free: 17.26 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006435/0.2488, allocations: 450.1 kB / 377.7 MB, free: 16.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.2488, allocations: 1.5 kB / 377.7 MB, free: 16.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001755/0.2506, allocations: 0.7835 MB / 378.5 MB, free: 16.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.482e-05/0.2506, allocations: 9.062 kB / 378.5 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.2506, allocations: 3.094 kB / 378.5 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007454/0.2514, allocations: 211 kB / 378.7 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002827/0.2517, allocations: 77.62 kB / 378.8 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004175/0.2559, allocations: 3.124 MB / 381.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004638/0.2564, allocations: 85.94 kB / 382 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.169e-05/0.2564, allocations: 20 kB / 382 MB, free: 14.42 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0002076/0.2566, allocations: 183.3 kB / 382.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.111e-05/0.2567, allocations: 49.25 kB / 382.2 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.03e-05/0.2568, allocations: 59.12 kB / 382.3 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.2568, allocations: 4.125 kB / 382.3 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.2568, allocations: 3.938 kB / 382.3 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.8e-06/0.2568, allocations: 2.297 kB / 382.3 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002057/0.2589, allocations: 1.276 MB / 383.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.2589, allocations: 0 / 383.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.259, allocations: 43.39 kB / 383.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005585/0.2596, allocations: 214.6 kB / 383.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.2596, allocations: 7 kB / 383.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003595/0.2632, allocations: 3.059 MB / 386.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2633, allocations: 5.781 kB / 386.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001713/0.265, allocations: 0.9293 MB / 387.8 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.246e-05/0.2651, allocations: 134.2 kB / 387.9 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.071e-05/0.2651, allocations: 11.75 kB / 388 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003396/0.2655, allocations: 42.44 kB / 388 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.068e-05/0.2656, allocations: 31.94 kB / 388 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.218e-05/0.2656, allocations: 13.08 kB / 388 MB, free: 10.74 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002917/0.2659, allocations: 305.9 kB / 388.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2659, allocations: 3.828 kB / 388.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005744/0.2665, allocations: 183.2 kB / 388.5 MB, free: 10.55 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (rootMeanSquare.mean.x) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001194/0.2666, allocations: 114.3 kB / 388.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00133/0.268, allocations: 0.673 MB / 389.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.268, allocations: 1.219 kB / 389.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006198/0.2686, allocations: 427.5 kB / 389.7 MB, free: 9.941 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004525/0.2691, allocations: 90 kB / 389.8 MB, free: 9.906 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001427/0.2705, allocations: 0.9081 MB / 390.7 MB, free: 9.426 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002756/0.2708, allocations: 0.8641 MB / 391.6 MB, free: 8.715 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001567/0.2709, allocations: 52.05 kB / 391.6 MB, free: 8.699 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.587e-05/0.271, allocations: 35.09 kB / 391.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.271, allocations: 0 / 391.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of Templates: time 0.6355/0.9066, allocations: 7.606 MB / 399.3 MB, free: 5.188 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches