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.0009443/0.0009444, allocations: 191.6 kB / 17.38 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 226.6 MB / 244.7 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008424/0.0008427, allocations: 99.41 kB / 296.7 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002672/0.0002673, allocations: 8 kB / 356.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2154/0.2157, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.00383/0.2196, allocations: 5.281 MB / 413.3 MB, free: 22.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00176/0.2214, allocations: 1.494 MB / 414.8 MB, free: 20.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002589/0.2216, allocations: 19.94 kB / 414.8 MB, free: 20.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001885/0.2218, allocations: 123 kB / 415 MB, free: 20.78 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003353/0.2222, allocations: 243 kB / 415.2 MB, free: 20.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000443/0.2226, allocations: 267.6 kB / 415.5 MB, free: 20.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00074/0.2234, allocations: 1.258 MB / 416.7 MB, free: 19.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003822/0.2238, allocations: 370.9 kB / 417.1 MB, free: 18.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003375/0.2241, allocations: 398.6 kB / 417.5 MB, free: 18.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003589/0.2245, allocations: 489.9 kB / 417.9 MB, free: 17.76 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.2246, allocations: 60 kB / 418 MB, free: 17.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001865/0.2248, allocations: 95.97 kB / 418.1 MB, free: 17.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.2249, allocations: 187.2 kB / 418.3 MB, free: 17.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003078/0.2252, allocations: 0.4993 MB / 418.8 MB, free: 16.92 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006558/0.2259, allocations: 1.162 MB / 419.9 MB, free: 15.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.2259, allocations: 0 / 419.9 MB, free: 15.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2259, allocations: 4 kB / 419.9 MB, free: 15.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.2259, allocations: 0 / 419.9 MB, free: 15.75 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.001833/0.2278, allocations: 1.212 MB / 421.2 MB, free: 14.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.2278, allocations: 12.03 kB / 421.2 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002806/0.2281, allocations: 127.6 kB / 421.3 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005213/0.2286, allocations: 0.546 MB / 421.8 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.503e-05/0.2287, allocations: 70.38 kB / 421.9 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.2288, allocations: 84.38 kB / 422 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.2301, allocations: 0.8627 MB / 422.9 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.2301, allocations: 0 / 422.9 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.657e-05/0.2302, allocations: 47.94 kB / 422.9 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.2302, allocations: 20 kB / 422.9 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001382/0.2316, allocations: 0.8746 MB / 423.8 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004345/0.2359, allocations: 3.269 MB / 427.1 MB, free: 8.406 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000979/0.2369, allocations: 0.6834 MB / 427.7 MB, free: 7.707 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006278/0.2376, allocations: 443.1 kB / 428.2 MB, free: 7.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.705e-05/0.2376, allocations: 12.55 kB / 428.2 MB, free: 7.258 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.2377, allocations: 47.12 kB / 428.2 MB, free: 7.203 MB / 298.7 MB Notification: Performance of pre-optimization done (n=69): time 2.455e-06/0.2377, allocations: 0 / 428.2 MB, free: 7.203 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.003796/0.2415, allocations: 2.329 MB / 430.6 MB, free: 4.828 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.503e-05/0.2415, allocations: 60.06 kB / 430.6 MB, free: 4.758 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005299/0.2421, allocations: 0.594 MB / 431.2 MB, free: 4.156 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.536e-05/0.2421, allocations: 41.7 kB / 431.3 MB, free: 4.109 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001729/0.2423, allocations: 447.2 kB / 431.7 MB, free: 3.664 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.2424, allocations: 260.2 kB / 432 MB, free: 3.406 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.457e-05/0.2425, allocations: 24 kB / 432 MB, free: 3.383 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.556e-05/0.2426, allocations: 382.8 kB / 432.3 MB, free: 3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005525/0.2431, allocations: 337.9 kB / 432.7 MB, free: 2.668 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005935/0.2437, allocations: 480.6 kB / 433.1 MB, free: 2.152 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001145/0.2449, allocations: 0.8281 MB / 434 MB, free: 1.277 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2449, allocations: 0 / 434 MB, free: 1.277 MB / 298.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001762/0.2466, allocations: 1.134 MB / 435.1 MB, free: 132 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.2467, allocations: 11.94 kB / 435.1 MB, free: 120 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.2467, allocations: 4 kB / 435.1 MB, free: 116 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005281/0.2472, allocations: 187.7 kB / 435.3 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008756/0.2481, allocations: 207.8 kB / 435.5 MB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003477/0.2516, allocations: 2.64 MB / 438.2 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005938/0.2522, allocations: 44.16 kB / 438.2 MB, free: 12.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.347e-05/0.2523, allocations: 32 kB / 438.2 MB, free: 12.88 MB / 314.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.0003716/0.2527, allocations: 233.6 kB / 438.5 MB, free: 12.64 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.2528, allocations: 87.05 kB / 438.5 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001843/0.253, allocations: 91.27 kB / 438.6 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.253, allocations: 11.94 kB / 438.6 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.253, allocations: 0 / 438.6 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.253, allocations: 7.984 kB / 438.6 MB, free: 12.44 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001009/0.254, allocations: 0.8806 MB / 439.5 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.254, allocations: 0 / 439.5 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007227/0.2548, allocations: 155.8 kB / 439.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005168/0.2553, allocations: 180.6 kB / 439.9 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.765e-05/0.2554, allocations: 23.98 kB / 439.9 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003266/0.2586, allocations: 2.644 MB / 442.5 MB, free: 8.383 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.2587, allocations: 0 / 442.5 MB, free: 8.383 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002447/0.2611, allocations: 1.458 MB / 444 MB, free: 6.902 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001388/0.2613, allocations: 152.1 kB / 444.1 MB, free: 6.734 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.814e-05/0.2614, allocations: 16.09 kB / 444.1 MB, free: 6.719 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005789/0.262, allocations: 63.91 kB / 444.2 MB, free: 6.656 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.2621, allocations: 56.56 kB / 444.3 MB, free: 6.602 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.37e-05/0.2621, allocations: 24.11 kB / 444.3 MB, free: 6.578 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004545/0.2626, allocations: 427 kB / 444.7 MB, free: 6.164 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2626, allocations: 0 / 444.7 MB, free: 6.164 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008041/0.2634, allocations: 244 kB / 444.9 MB, free: 5.926 MB / 314.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.0002105/0.2636, allocations: 131.2 kB / 445.1 MB, free: 5.789 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002695/0.2663, allocations: 1.061 MB / 446.1 MB, free: 4.719 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.777e-06/0.2664, allocations: 8.25 kB / 446.1 MB, free: 4.711 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001273/0.2677, allocations: 0.6503 MB / 446.8 MB, free: 4.043 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007905/0.2685, allocations: 133.9 kB / 446.9 MB, free: 3.918 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003498/0.272, allocations: 2.468 MB / 449.4 MB, free: 1.418 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005197/0.2725, allocations: 0.9736 MB / 450.4 MB, free: 428 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002689/0.2728, allocations: 71.41 kB / 450.4 MB, free: 356 kB / 314.7 MB Notification: Performance of SimCode: time 4.61e-07/0.2728, allocations: 0 / 450.4 MB, free: 356 kB / 314.7 MB Notification: Performance of Templates: time 0.01735/0.2902, allocations: 14.8 MB / 465.2 MB, free: 1.594 MB / 330.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/jenkins/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