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.002296/0.002302, allocations: 183.6 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.528/3.528, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.002/0.002, allocations: 89.56 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000687/0.0006871, allocations: 8 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5508/0.5516, allocations: 47.56 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.009916/0.5616, allocations: 4.549 MB / 379.1 MB, free: 41.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005575/0.5672, allocations: 1.454 MB / 380.5 MB, free: 40.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001391/0.5687, allocations: 19.06 kB / 380.5 MB, free: 40.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008345/0.5696, allocations: 108.4 kB / 380.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002309/0.572, allocations: 325.6 kB / 381 MB, free: 40.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001795/0.5738, allocations: 236.2 kB / 381.2 MB, free: 40.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003442/0.5773, allocations: 0.7947 MB / 382 MB, free: 39.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001158/0.5786, allocations: 300 kB / 382.3 MB, free: 39.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001392/0.58, allocations: 366.5 kB / 382.6 MB, free: 39.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001635/0.5817, allocations: 447 kB / 383.1 MB, free: 38.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004758/0.5823, allocations: 55.62 kB / 383.1 MB, free: 38.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008531/0.5832, allocations: 83.73 kB / 383.2 MB, free: 38.9 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003162/0.5835, allocations: 175.2 kB / 383.4 MB, free: 38.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007221/0.5843, allocations: 200.2 kB / 383.6 MB, free: 38.64 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002766/0.5871, allocations: 1.047 MB / 384.6 MB, free: 37.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.5871, allocations: 0 / 384.6 MB, free: 37.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.252e-06/0.5872, allocations: 1.156 kB / 384.6 MB, free: 37.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.989e-05/0.5873, allocations: 0 / 384.6 MB, free: 37.82 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.005998/0.5933, allocations: 1.155 MB / 385.8 MB, free: 36.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.109e-05/0.5934, allocations: 8.688 kB / 385.8 MB, free: 36.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007423/0.5941, allocations: 111.6 kB / 385.9 MB, free: 36.92 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001929/0.5961, allocations: 494.8 kB / 386.4 MB, free: 36.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001539/0.5963, allocations: 58.94 kB / 386.4 MB, free: 36.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005025/0.5969, allocations: 88.91 kB / 386.5 MB, free: 36.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004866/0.6018, allocations: 0.8768 MB / 387.4 MB, free: 35.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.941e-05/0.6019, allocations: 0 / 387.4 MB, free: 35.81 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002519/0.6022, allocations: 36 kB / 387.4 MB, free: 35.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-05/0.6022, allocations: 27.98 kB / 387.5 MB, free: 35.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004624/0.6069, allocations: 0.8081 MB / 388.3 MB, free: 34.94 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01338/0.6203, allocations: 3.089 MB / 391.4 MB, free: 31.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002776/0.6232, allocations: 0.6623 MB / 392 MB, free: 31.06 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001553/0.6234, allocations: 12.55 kB / 392 MB, free: 31.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.388e-05/0.6235, allocations: 39.12 kB / 392.1 MB, free: 31 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 6.563e-06/0.6235, allocations: 4 kB / 392.1 MB, free: 31 MB / 298.7 MB Notification: Performance of matching and sorting (n=71): time 0.01224/0.6358, allocations: 2.252 MB / 394.3 MB, free: 28.69 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.785e-05/0.6359, allocations: 64 kB / 394.4 MB, free: 28.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001358/0.6373, allocations: 0.5027 MB / 394.9 MB, free: 28.11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002846/0.6376, allocations: 37.7 kB / 394.9 MB, free: 28.06 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004141/0.6381, allocations: 422 kB / 395.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005294/0.6386, allocations: 252.3 kB / 395.6 MB, free: 27.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/0.6388, allocations: 16 kB / 395.6 MB, free: 27.38 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.6389, allocations: 342.8 kB / 396 MB, free: 27.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001807/0.6408, allocations: 317.9 kB / 396.3 MB, free: 26.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001992/0.6428, allocations: 429.1 kB / 396.7 MB, free: 26.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002023/0.6449, allocations: 374.9 kB / 397 MB, free: 25.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.158e-05/0.645, allocations: 4 kB / 397.1 MB, free: 25.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.005386/0.6504, allocations: 1.017 MB / 398.1 MB, free: 24.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.341e-05/0.6505, allocations: 8 kB / 398.1 MB, free: 24.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.025e-05/0.6506, allocations: 4 kB / 398.1 MB, free: 24.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001309/0.6519, allocations: 172.7 kB / 398.2 MB, free: 24.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002425/0.6544, allocations: 195.8 kB / 398.4 MB, free: 24.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00816/0.6626, allocations: 2.654 MB / 401.1 MB, free: 21.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001731/0.6644, allocations: 48.05 kB / 401.1 MB, free: 21.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002807/0.6648, allocations: 27.98 kB / 401.2 MB, free: 21.64 MB / 298.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 () * Number of clocked 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.0008769/0.6657, allocations: 220.6 kB / 401.4 MB, free: 21.42 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003231/0.666, allocations: 75.11 kB / 401.5 MB, free: 21.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003387/0.6664, allocations: 86.17 kB / 401.5 MB, free: 21.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-05/0.6664, allocations: 8 kB / 401.5 MB, free: 21.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.457e-05/0.6664, allocations: 4 kB / 401.6 MB, free: 21.24 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/0.6665, allocations: 3.984 kB / 401.6 MB, free: 21.24 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002274/0.6687, allocations: 0.8338 MB / 402.4 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-05/0.6688, allocations: 0 / 402.4 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002146/0.671, allocations: 159.8 kB / 402.5 MB, free: 20.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001402/0.6725, allocations: 184.7 kB / 402.7 MB, free: 20.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000278/0.6728, allocations: 20.11 kB / 402.7 MB, free: 20 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009835/0.6827, allocations: 2.656 MB / 405.4 MB, free: 17.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.6828, allocations: 0 / 405.4 MB, free: 17.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006889/0.6897, allocations: 1.423 MB / 406.8 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004251/0.6902, allocations: 136.2 kB / 407 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003765/0.6906, allocations: 16 kB / 407 MB, free: 15.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001759/0.6923, allocations: 63.95 kB / 407 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003184/0.6927, allocations: 52.58 kB / 407.1 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001881/0.6929, allocations: 19.98 kB / 407.1 MB, free: 15.46 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008903/0.6938, allocations: 354.9 kB / 407.5 MB, free: 15.12 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.11e-07/0.6939, allocations: 0 / 407.5 MB, free: 15.12 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002085/0.696, allocations: 220 kB / 407.7 MB, free: 14.91 MB / 298.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 () * 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,68.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004607/0.6965, allocations: 143.4 kB / 407.8 MB, free: 14.76 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.005432/0.702, allocations: 1.022 MB / 408.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/0.702, allocations: 3.938 kB / 408.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003524/0.7056, allocations: 0.6436 MB / 409.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001744/0.7074, allocations: 119.7 kB / 409.6 MB, free: 12.95 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007621/0.7151, allocations: 2.347 MB / 411.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007241/0.7159, allocations: 0.9655 MB / 412.9 MB, free: 9.574 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006957/0.7166, allocations: 63.41 kB / 413 MB, free: 9.516 MB / 298.7 MB Notification: Performance of SimCode: time 2.124e-06/0.7167, allocations: 4 kB / 413 MB, free: 9.512 MB / 298.7 MB Notification: Performance of Templates: time 0.04016/0.7568, allocations: 13.07 MB / 426 MB, free: 12.44 MB / 314.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