Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002196/0.002196, allocations: 181.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.029/2.029, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001096/0.001096, allocations: 94.64 kB / 267.5 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.809e-05/2.817e-05, allocations: 4 kB / 321.5 MB, free: 17.83 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09305/0.0931, allocations: 47.57 MB / 369.1 MB, free: 2.195 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4038/0.497, allocations: 80.07 MB / 449.2 MB, free: 13.18 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.4973, allocations: 71.52 kB / 449.2 MB, free: 13.14 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06415/0.5615, allocations: 14.31 MB / 463.5 MB, free: 0.7109 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.5616, allocations: 0 / 463.5 MB, free: 0.7109 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.794e-05/0.5616, allocations: 24 kB / 463.6 MB, free: 0.6875 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.003853/0.5655, allocations: 1.049 MB / 464.6 MB, free: 15.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.806e-05/0.5656, allocations: 12.03 kB / 464.6 MB, free: 15.58 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000435/0.566, allocations: 110.8 kB / 464.7 MB, free: 15.47 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001143/0.5672, allocations: 0.4886 MB / 465.2 MB, free: 14.94 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.572e-05/0.5673, allocations: 62 kB / 465.3 MB, free: 14.88 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002243/0.5675, allocations: 80 kB / 465.4 MB, free: 14.8 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002425/0.57, allocations: 0.826 MB / 466.2 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.096e-05/0.57, allocations: 4 kB / 466.2 MB, free: 13.95 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001448/0.5702, allocations: 32 kB / 466.2 MB, free: 13.92 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.116e-05/0.5702, allocations: 20 kB / 466.2 MB, free: 13.9 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002345/0.5726, allocations: 0.7108 MB / 466.9 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009478/0.5821, allocations: 3.096 MB / 470 MB, free: 9.977 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001666/0.5838, allocations: 0.6231 MB / 470.7 MB, free: 9.34 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009312/0.5848, allocations: 374.5 kB / 471 MB, free: 8.973 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001078/0.5849, allocations: 12.55 kB / 471 MB, free: 8.961 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.419e-05/0.585, allocations: 47.12 kB / 471.1 MB, free: 8.906 MB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 3.516e-06/0.585, allocations: 0 / 471.1 MB, free: 8.906 MB / 346.7 MB Notification: Performance of matching and sorting (n=71): time 0.005781/0.5908, allocations: 1.802 MB / 472.9 MB, free: 7.047 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.453e-05/0.5909, allocations: 60.19 kB / 473 MB, free: 6.973 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009051/0.5918, allocations: 448.8 kB / 473.4 MB, free: 6.527 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001987/0.592, allocations: 37.7 kB / 473.4 MB, free: 6.484 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003452/0.5924, allocations: 421.9 kB / 473.8 MB, free: 6.066 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003387/0.5927, allocations: 256.4 kB / 474.1 MB, free: 5.812 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.177e-05/0.5928, allocations: 16 kB / 474.1 MB, free: 5.797 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.593, allocations: 346.8 kB / 474.4 MB, free: 5.449 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000868/0.5939, allocations: 266 kB / 474.7 MB, free: 5.191 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009219/0.5948, allocations: 385 kB / 475.1 MB, free: 4.777 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009608/0.5958, allocations: 330 kB / 475.4 MB, free: 4.457 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.5958, allocations: 0 / 475.4 MB, free: 4.457 MB / 346.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003112/0.599, allocations: 0.9224 MB / 476.3 MB, free: 3.523 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.104e-05/0.599, allocations: 4 kB / 476.3 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/0.5991, allocations: 7.938 kB / 476.3 MB, free: 3.512 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009518/0.6, allocations: 181.7 kB / 476.5 MB, free: 3.332 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00175/0.6018, allocations: 195.8 kB / 476.7 MB, free: 3.141 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005886/0.6077, allocations: 2.591 MB / 479.3 MB, free: 420 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.6089, allocations: 40.03 kB / 479.3 MB, free: 380 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.609, allocations: 32 kB / 479.4 MB, free: 348 kB / 346.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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: 1 {(5,60.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003056/0.6094, allocations: 144.8 kB / 479.5 MB, free: 196 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001988/0.6096, allocations: 79.08 kB / 479.6 MB, free: 116 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002796/0.6099, allocations: 90.16 kB / 479.7 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.999e-06/0.6099, allocations: 4 kB / 479.7 MB, free: 20 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.361e-05/0.6099, allocations: 4 kB / 479.7 MB, free: 16 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.6099, allocations: 3.984 kB / 479.7 MB, free: 12 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001727/0.6117, allocations: 0.8379 MB / 480.5 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.6117, allocations: 4 kB / 480.5 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001527/0.6132, allocations: 155.9 kB / 480.7 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009539/0.6142, allocations: 168.7 kB / 480.8 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001541/0.6144, allocations: 31.97 kB / 480.9 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005738/0.6202, allocations: 2.601 MB / 483.5 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.6202, allocations: 4 kB / 483.5 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003799/0.624, allocations: 1.284 MB / 484.8 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002839/0.6244, allocations: 136.3 kB / 484.9 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001821/0.6245, allocations: 12 kB / 484.9 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.6257, allocations: 67.95 kB / 485 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002149/0.6259, allocations: 52.66 kB / 485 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001084/0.626, allocations: 23.98 kB / 485 MB, free: 10.42 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006763/0.6267, allocations: 345.6 kB / 485.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6267, allocations: 0 / 485.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001332/0.6281, allocations: 232.1 kB / 485.6 MB, free: 9.859 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * 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: 1 {(5,68.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003971/0.6285, allocations: 151.1 kB / 485.8 MB, free: 9.703 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003188/0.6317, allocations: 0.9283 MB / 486.7 MB, free: 8.762 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.6318, allocations: 0 / 486.7 MB, free: 8.762 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002215/0.634, allocations: 0.6012 MB / 487.3 MB, free: 8.145 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001105/0.6351, allocations: 111 kB / 487.4 MB, free: 8.039 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004393/0.6396, allocations: 1.612 MB / 489 MB, free: 6.398 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007568/0.6404, allocations: 0.9736 MB / 490 MB, free: 5.398 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004737/0.6408, allocations: 55.41 kB / 490 MB, free: 5.344 MB / 362.7 MB Notification: Performance of SimCode: time 9.92e-07/0.6409, allocations: 0 / 490 MB, free: 5.344 MB / 362.7 MB Notification: Performance of Templates: time 0.02909/0.67, allocations: 13.06 MB / 0.4913 GB, free: 8.266 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches