Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.00106/0.00106, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.674/1.674, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008248/0.0008248, allocations: 82.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.272e-05/3.29e-05, allocations: 0 / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.123, allocations: 47.58 MB / 370 MB, free: 1.719 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3307/0.4538, allocations: 80.07 MB / 450.1 MB, free: 13.24 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000231/0.454, allocations: 67.53 kB / 450.2 MB, free: 13.21 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03812/0.4922, allocations: 14.32 MB / 464.5 MB, free: 392 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4922, allocations: 0 / 464.5 MB, free: 392 kB / 330.7 MB Notification: Performance of Transformations before backend: time 3.891e-05/0.4923, allocations: 24 kB / 464.5 MB, free: 368 kB / 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.00198/0.4943, allocations: 1.057 MB / 465.5 MB, free: 15.25 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.4943, allocations: 16.03 kB / 465.6 MB, free: 15.24 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001811/0.4945, allocations: 102.8 kB / 465.7 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006868/0.4952, allocations: 496.3 kB / 466.1 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.264e-05/0.4953, allocations: 62 kB / 466.2 MB, free: 14.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001391/0.4954, allocations: 76 kB / 466.3 MB, free: 14.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/0.4968, allocations: 0.8221 MB / 467.1 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.801e-05/0.4969, allocations: 0 / 467.1 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.95e-05/0.4969, allocations: 36 kB / 467.1 MB, free: 13.6 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.389e-05/0.497, allocations: 24 kB / 467.2 MB, free: 13.58 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001179/0.4982, allocations: 0.7107 MB / 467.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004777/0.503, allocations: 3.096 MB / 471 MB, free: 9.652 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009297/0.5039, allocations: 0.6271 MB / 471.6 MB, free: 9.012 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005265/0.5044, allocations: 374.5 kB / 472 MB, free: 8.645 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.936e-05/0.5045, allocations: 12.56 kB / 472 MB, free: 8.633 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.5046, allocations: 39.12 kB / 472 MB, free: 8.586 MB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 2.826e-06/0.5046, allocations: 0 / 472 MB, free: 8.586 MB / 346.7 MB Notification: Performance of matching and sorting (n=71): time 0.00328/0.5078, allocations: 1.811 MB / 473.8 MB, free: 6.719 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/0.5079, allocations: 60.19 kB / 473.9 MB, free: 6.645 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005215/0.5084, allocations: 444.8 kB / 474.3 MB, free: 6.203 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.52e-05/0.5085, allocations: 41.7 kB / 474.4 MB, free: 6.156 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002387/0.5087, allocations: 391.5 kB / 474.7 MB, free: 5.766 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001788/0.5089, allocations: 252.4 kB / 475 MB, free: 5.516 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.078e-05/0.509, allocations: 16 kB / 475 MB, free: 5.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.5091, allocations: 382.7 kB / 475.4 MB, free: 5.117 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004418/0.5096, allocations: 269.9 kB / 475.6 MB, free: 4.855 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000508/0.5101, allocations: 393 kB / 476 MB, free: 4.434 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005104/0.5106, allocations: 322.1 kB / 476.3 MB, free: 4.121 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.5106, allocations: 4 kB / 476.3 MB, free: 4.117 MB / 346.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001625/0.5123, allocations: 0.961 MB / 477.3 MB, free: 3.145 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.5123, allocations: 4 kB / 477.3 MB, free: 3.141 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.988e-06/0.5123, allocations: 4 kB / 477.3 MB, free: 3.137 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005501/0.5129, allocations: 177.5 kB / 477.5 MB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007954/0.5137, allocations: 195.7 kB / 477.7 MB, free: 2.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00351/0.5172, allocations: 2.591 MB / 480.3 MB, free: 40 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006203/0.5178, allocations: 44.05 kB / 480.3 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.932e-05/0.5179, allocations: 35.92 kB / 480.3 MB, free: 15.96 MB / 362.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.0001748/0.5181, allocations: 148.9 kB / 480.5 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.5182, allocations: 71.16 kB / 480.6 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002023/0.5184, allocations: 90.16 kB / 480.6 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.5184, allocations: 7.984 kB / 480.7 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-05/0.5184, allocations: 4 kB / 480.7 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.5184, allocations: 3.984 kB / 480.7 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009915/0.5194, allocations: 0.8378 MB / 481.5 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.5195, allocations: 0 / 481.5 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007313/0.5202, allocations: 155.8 kB / 481.7 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000494/0.5207, allocations: 176.6 kB / 481.8 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.658e-05/0.5208, allocations: 23.98 kB / 481.8 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003391/0.5242, allocations: 2.601 MB / 484.5 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.5242, allocations: 3.984 kB / 484.5 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002127/0.5263, allocations: 1.28 MB / 485.7 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001696/0.5265, allocations: 136.5 kB / 485.9 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.713e-05/0.5266, allocations: 16 kB / 485.9 MB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005547/0.5272, allocations: 67.95 kB / 485.9 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.5273, allocations: 56.66 kB / 486 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.048e-05/0.5274, allocations: 19.98 kB / 486 MB, free: 10.05 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004585/0.5278, allocations: 349.6 kB / 486.4 MB, free: 9.707 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5278, allocations: 0 / 486.4 MB, free: 9.707 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009412/0.5288, allocations: 236.1 kB / 486.6 MB, free: 9.477 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.000298/0.5291, allocations: 147.1 kB / 486.7 MB, free: 9.324 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001977/0.5311, allocations: 0.9283 MB / 487.7 MB, free: 8.383 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.5311, allocations: 4 kB / 487.7 MB, free: 8.379 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001273/0.5324, allocations: 0.5933 MB / 488.3 MB, free: 7.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005948/0.533, allocations: 124.3 kB / 488.4 MB, free: 7.652 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002657/0.5357, allocations: 1.559 MB / 489.9 MB, free: 6.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006286/0.5363, allocations: 0.9697 MB / 490.9 MB, free: 5.074 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003915/0.5367, allocations: 89.05 kB / 491 MB, free: 4.988 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/0.5369, allocations: 55.41 kB / 491.1 MB, free: 4.934 MB / 362.7 MB Notification: Performance of SimCode: time 8.52e-07/0.5369, allocations: 0 / 491.1 MB, free: 4.934 MB / 362.7 MB Notification: Performance of Templates: time 0.018/0.5549, allocations: 9.425 MB / 0.4888 GB, free: 11.5 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches