Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.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_trunk_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_trunk_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001026/0.001026, allocations: 199.5 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.236/1.236, allocations: 226.5 MB / 245.4 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007673/0.0007677, allocations: 113 kB / 297.4 MB, free: 6.863 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000203/0.0002031, allocations: 4 kB / 357.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.221/0.2212, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08745/0.3087, allocations: 83.81 MB / 492.5 MB, free: 7.785 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002065/0.3089, allocations: 72.58 kB / 492.5 MB, free: 7.715 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03956/0.3485, allocations: 15.96 MB / 0.4966 GB, free: 7.691 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3485, allocations: 0 / 0.4966 GB, free: 7.691 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.755e-05/0.3486, allocations: 24 kB / 0.4966 GB, free: 7.668 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002102/0.3507, allocations: 1.2 MB / 0.4978 GB, free: 6.414 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.3507, allocations: 8.031 kB / 0.4978 GB, free: 6.406 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000289/0.351, allocations: 131.6 kB / 0.4979 GB, free: 6.277 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007057/0.3518, allocations: 0.579 MB / 0.4985 GB, free: 5.656 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.655e-05/0.3518, allocations: 66.38 kB / 0.4985 GB, free: 5.594 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/0.352, allocations: 88.38 kB / 0.4986 GB, free: 5.508 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00146/0.3534, allocations: 0.8629 MB / 0.4995 GB, free: 4.637 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/0.3534, allocations: 192 / 0.4995 GB, free: 4.637 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.585e-05/0.3535, allocations: 43.88 kB / 0.4995 GB, free: 4.594 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.623e-05/0.3536, allocations: 20 kB / 0.4995 GB, free: 4.574 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001612/0.3552, allocations: 0.8785 MB / 0.5004 GB, free: 3.695 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005011/0.3602, allocations: 3.3 MB / 0.5036 GB, free: 280 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1456/0.5058, allocations: 0.6744 MB / 0.5043 GB, free: 89.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007946/0.5066, allocations: 444.3 kB / 0.5047 GB, free: 89.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.859e-05/0.5067, allocations: 10.86 kB / 0.5047 GB, free: 89.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.5067, allocations: 43.7 kB / 0.5047 GB, free: 89.44 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 2.504e-06/0.5067, allocations: 0.9062 kB / 0.5047 GB, free: 89.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.004669/0.5114, allocations: 2.443 MB / 0.5071 GB, free: 88.99 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.573e-05/0.5114, allocations: 61.97 kB / 0.5072 GB, free: 88.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006514/0.5121, allocations: 0.6042 MB / 0.5078 GB, free: 88.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.98e-05/0.5122, allocations: 38.59 kB / 0.5078 GB, free: 88.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002199/0.5124, allocations: 447.9 kB / 0.5082 GB, free: 88.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.5125, allocations: 259.2 kB / 0.5085 GB, free: 88.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.847e-05/0.5126, allocations: 19.62 kB / 0.5085 GB, free: 88.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.555e-05/0.5127, allocations: 386.7 kB / 0.5089 GB, free: 88.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007302/0.5134, allocations: 332.5 kB / 0.5092 GB, free: 88.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008197/0.5142, allocations: 484.5 kB / 0.5097 GB, free: 88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001252/0.5155, allocations: 0.8222 MB / 0.5105 GB, free: 87.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.5155, allocations: 4.234 kB / 0.5105 GB, free: 87.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001837/0.5174, allocations: 1.133 MB / 0.5116 GB, free: 87.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.5174, allocations: 6.375 kB / 0.5116 GB, free: 87.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.5174, allocations: 8.891 kB / 0.5116 GB, free: 87.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000472/0.5179, allocations: 188.3 kB / 0.5118 GB, free: 87.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007896/0.5187, allocations: 204.7 kB / 0.512 GB, free: 87.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002672/0.5214, allocations: 2.63 MB / 0.5145 GB, free: 85.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005984/0.522, allocations: 45.53 kB / 0.5146 GB, free: 85.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.097e-05/0.5221, allocations: 32.39 kB / 0.5146 GB, free: 85.6 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (90): * Single equations (assignments): 89 * 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,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003227/0.5224, allocations: 230.7 kB / 0.5148 GB, free: 85.42 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.5225, allocations: 80.66 kB / 0.5149 GB, free: 85.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001535/0.5227, allocations: 96.42 kB / 0.515 GB, free: 85.31 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.5227, allocations: 13.03 kB / 0.515 GB, free: 85.31 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.367e-05/0.5227, allocations: 3.938 kB / 0.515 GB, free: 85.31 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.5227, allocations: 3.141 kB / 0.515 GB, free: 85.31 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007974/0.5235, allocations: 0.8887 MB / 0.5159 GB, free: 84.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.5235, allocations: 0 / 0.5159 GB, free: 84.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006679/0.5242, allocations: 157.8 kB / 0.516 GB, free: 84.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000427/0.5246, allocations: 185.4 kB / 0.5162 GB, free: 84.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.175e-05/0.5247, allocations: 21.39 kB / 0.5162 GB, free: 84.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002549/0.5272, allocations: 2.632 MB / 0.5188 GB, free: 82.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.5273, allocations: 0 / 0.5188 GB, free: 82.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002056/0.5293, allocations: 1.466 MB / 0.5202 GB, free: 82.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.5294, allocations: 150.3 kB / 0.5204 GB, free: 81.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.48e-05/0.5295, allocations: 15.94 kB / 0.5204 GB, free: 81.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005479/0.5301, allocations: 63.58 kB / 0.5204 GB, free: 81.95 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.5302, allocations: 52.84 kB / 0.5205 GB, free: 81.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.763e-05/0.5303, allocations: 22.64 kB / 0.5205 GB, free: 81.94 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003728/0.5306, allocations: 425.2 kB / 0.5209 GB, free: 81.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5307, allocations: 0 / 0.5209 GB, free: 81.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007235/0.5314, allocations: 253.1 kB / 0.5212 GB, free: 81.71 MB / 378.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.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * 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 (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,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001822/0.5316, allocations: 147.7 kB / 0.5213 GB, free: 81.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001752/0.5333, allocations: 1.062 MB / 0.5223 GB, free: 81.15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.5333, allocations: 4.75 kB / 0.5223 GB, free: 81.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001064/0.5344, allocations: 0.6466 MB / 0.523 GB, free: 80.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000679/0.5351, allocations: 138.4 kB / 0.5231 GB, free: 80.78 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002541/0.5377, allocations: 2.462 MB / 0.5255 GB, free: 79.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003181/0.538, allocations: 0.9803 MB / 0.5265 GB, free: 78.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002402/0.5382, allocations: 66.61 kB / 0.5265 GB, free: 78.54 MB / 378.7 MB Notification: Performance of SimCode: time 4.4e-07/0.5383, allocations: 0 / 0.5265 GB, free: 78.54 MB / 378.7 MB Notification: Performance of Templates: time 0.01312/0.5514, allocations: 14.81 MB / 0.541 GB, free: 67.58 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[5004]=1.000000 File[5057]=0.000000 " Variables in the reference: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 Variables in the result:C1.v,C2.v,C3.v,C4.v,C5.v,Transistor1.Tr.C.v,Transistor1.ct.v,Transistor2.Tr.C.v,Transistor2.ct.v,time