Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.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_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_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001536/0.001536, allocations: 109.2 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001902/0.001902, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.4 MB / 246.9 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 66.06 kB / 306.9 MB, free: 0.9297 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1027, allocations: 50.53 MB / 357.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006778/0.1096, allocations: 6.083 MB / 363.5 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00323/0.1128, allocations: 1.544 MB / 365.1 MB, free: 6.727 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005592/0.1134, allocations: 19.94 kB / 365.1 MB, free: 6.707 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000381/0.1139, allocations: 131 kB / 365.2 MB, free: 6.578 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005846/0.1145, allocations: 249.9 kB / 365.5 MB, free: 6.332 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000801/0.1153, allocations: 363.6 kB / 365.8 MB, free: 5.977 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001161/0.1164, allocations: 1.301 MB / 367.1 MB, free: 4.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005082/0.117, allocations: 366.9 kB / 367.5 MB, free: 4.289 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005846/0.1176, allocations: 446.4 kB / 367.9 MB, free: 3.852 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005036/0.1181, allocations: 0.525 MB / 368.4 MB, free: 3.324 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001166/0.1182, allocations: 72 kB / 368.5 MB, free: 3.254 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000256/0.1185, allocations: 116 kB / 368.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001736/0.1186, allocations: 211.1 kB / 368.8 MB, free: 2.934 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004507/0.1191, allocations: 0.5208 MB / 369.3 MB, free: 2.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00094/0.12, allocations: 1.185 MB / 370.5 MB, free: 1.223 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1201, allocations: 0 / 370.5 MB, free: 1.223 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1201, allocations: 3.938 kB / 370.5 MB, free: 1.219 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.151e-05/0.1201, allocations: 0 / 370.5 MB, free: 1.219 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.186/0.3061, allocations: 1.385 MB / 371.9 MB, free: 19.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/0.3062, allocations: 9.219 kB / 371.9 MB, free: 19.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004781/0.3067, allocations: 128.5 kB / 372 MB, free: 19.58 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007764/0.3075, allocations: 0.5423 MB / 372.6 MB, free: 19.28 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.651e-05/0.3076, allocations: 66.53 kB / 372.7 MB, free: 19.28 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.3077, allocations: 89.12 kB / 372.7 MB, free: 19.28 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001786/0.3095, allocations: 0.8538 MB / 373.6 MB, free: 19.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/0.3095, allocations: 1.125 kB / 373.6 MB, free: 19.03 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.075e-05/0.3096, allocations: 41.28 kB / 373.6 MB, free: 19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.282e-05/0.3097, allocations: 21.59 kB / 373.7 MB, free: 19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001779/0.3114, allocations: 0.8496 MB / 374.5 MB, free: 18.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005747/0.3172, allocations: 3.242 MB / 377.7 MB, free: 16.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.3184, allocations: 0.6638 MB / 378.4 MB, free: 16.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007095/0.3191, allocations: 438.3 kB / 378.8 MB, free: 16.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.269e-05/0.3192, allocations: 10.39 kB / 378.8 MB, free: 16.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.3192, allocations: 40.44 kB / 378.9 MB, free: 16.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 2.415e-06/0.3192, allocations: 0 / 378.9 MB, free: 16.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.004525/0.3238, allocations: 2.267 MB / 381.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.342e-05/0.3238, allocations: 59.22 kB / 381.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007551/0.3246, allocations: 0.6097 MB / 381.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.055e-05/0.3246, allocations: 41.14 kB / 381.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002332/0.3249, allocations: 439.7 kB / 382.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.3251, allocations: 268 kB / 382.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002528/0.3253, allocations: 146.6 kB / 382.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.3254, allocations: 388.3 kB / 383.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006533/0.3261, allocations: 321.8 kB / 383.4 MB, free: 13.74 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006936/0.3268, allocations: 474.9 kB / 383.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00131/0.3281, allocations: 0.8017 MB / 384.7 MB, free: 13 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.3281, allocations: 1.094 kB / 384.7 MB, free: 13 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002151/0.3303, allocations: 1.119 MB / 385.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.3303, allocations: 5.344 kB / 385.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.3303, allocations: 4.422 kB / 385.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006072/0.331, allocations: 195.9 kB / 386 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009265/0.3319, allocations: 194 kB / 386.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003331/0.3352, allocations: 2.626 MB / 388.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007475/0.336, allocations: 41.8 kB / 388.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.752e-05/0.3361, allocations: 33.58 kB / 388.9 MB, free: 10.4 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: 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 (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): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003655/0.3365, allocations: 236.8 kB / 389.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.3366, allocations: 79.66 kB / 389.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001603/0.3368, allocations: 95.45 kB / 389.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.3368, allocations: 7.844 kB / 389.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.31e-05/0.3368, allocations: 7.094 kB / 389.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.3368, allocations: 8.875 kB / 389.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.338, allocations: 0.8821 MB / 390.2 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.338, allocations: 1.062 kB / 390.2 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007484/0.3388, allocations: 142.6 kB / 390.3 MB, free: 9.613 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005414/0.3393, allocations: 188.7 kB / 390.5 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.659e-05/0.3394, allocations: 18 kB / 390.5 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002936/0.3423, allocations: 2.648 MB / 393.2 MB, free: 7.527 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3423, allocations: 0 / 393.2 MB, free: 7.527 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002508/0.3449, allocations: 1.428 MB / 394.6 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000144/0.345, allocations: 143.4 kB / 394.7 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.3451, allocations: 26.41 kB / 394.8 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005761/0.3457, allocations: 53.19 kB / 394.8 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.3458, allocations: 51.84 kB / 394.9 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.391e-05/0.3459, allocations: 28.39 kB / 394.9 MB, free: 6.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004377/0.3464, allocations: 419.9 kB / 395.3 MB, free: 6.277 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3464, allocations: 3.781 kB / 395.3 MB, free: 6.277 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008603/0.3472, allocations: 243 kB / 395.5 MB, free: 6.25 MB / 302.1 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 (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): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002074/0.3474, allocations: 143.1 kB / 395.7 MB, free: 6.137 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002065/0.3495, allocations: 1.037 MB / 396.7 MB, free: 5.574 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3495, allocations: 5.344 kB / 396.7 MB, free: 5.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001166/0.3507, allocations: 0.6436 MB / 397.4 MB, free: 5.188 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007895/0.3515, allocations: 136.2 kB / 397.5 MB, free: 5.121 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002857/0.3544, allocations: 2.41 MB / 399.9 MB, free: 3.395 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.3547, allocations: 0.9801 MB / 400.9 MB, free: 2.578 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002597/0.355, allocations: 66.84 kB / 401 MB, free: 2.559 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.355, allocations: 0 / 401 MB, free: 2.559 MB / 302.1 MB Notification: Performance of Templates: time 0.01797/0.373, allocations: 14.92 MB / 415.9 MB, free: 3.773 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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