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.00156/0.00156, allocations: 177.1 kB / 16.41 MB, free: 5.703 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.37/1.37, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0008315/0.0008316, allocations: 87.8 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003508/0.000351, allocations: 12 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2394/0.2397, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.004583/0.2444, allocations: 4.949 MB / 379.5 MB, free: 41.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003025/0.2475, allocations: 1.402 MB / 380.9 MB, free: 40.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004572/0.2479, allocations: 15.16 kB / 380.9 MB, free: 40.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002433/0.2482, allocations: 117.1 kB / 381 MB, free: 40.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004311/0.2486, allocations: 233 kB / 381.3 MB, free: 40.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005396/0.2492, allocations: 231.6 kB / 381.5 MB, free: 39.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000911/0.2501, allocations: 1.115 MB / 382.6 MB, free: 39.17 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004241/0.2505, allocations: 303.7 kB / 382.9 MB, free: 38.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004279/0.251, allocations: 374 kB / 383.3 MB, free: 38.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004556/0.2514, allocations: 442.7 kB / 383.7 MB, free: 38.51 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001295/0.2516, allocations: 54.88 kB / 383.7 MB, free: 38.51 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002542/0.2518, allocations: 90.83 kB / 383.8 MB, free: 38.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001066/0.2519, allocations: 170.9 kB / 384 MB, free: 38.35 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001564/0.2521, allocations: 211.8 kB / 384.2 MB, free: 38.22 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008185/0.2529, allocations: 1.043 MB / 385.2 MB, free: 37.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.253, allocations: 0 / 385.2 MB, free: 37.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.253, allocations: 0 / 385.2 MB, free: 37.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.444e-05/0.253, allocations: 0 / 385.2 MB, free: 37.41 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.002082/0.2551, allocations: 1.161 MB / 386.4 MB, free: 36.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.2551, allocations: 13.41 kB / 386.4 MB, free: 36.56 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000187/0.2553, allocations: 102.8 kB / 386.5 MB, free: 36.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005448/0.2559, allocations: 0.4917 MB / 387 MB, free: 36.06 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.773e-05/0.2559, allocations: 59.38 kB / 387.1 MB, free: 36.03 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001226/0.2561, allocations: 87.53 kB / 387.2 MB, free: 36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/0.2574, allocations: 0.8825 MB / 388 MB, free: 35.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.2574, allocations: 4 kB / 388 MB, free: 35.2 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-05/0.2575, allocations: 40 kB / 388.1 MB, free: 35.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/0.2575, allocations: 20 kB / 388.1 MB, free: 35.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001307/0.2588, allocations: 0.7964 MB / 388.9 MB, free: 34.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004114/0.263, allocations: 3.101 MB / 392 MB, free: 31.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009659/0.264, allocations: 0.6584 MB / 392.7 MB, free: 30.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005939/0.2646, allocations: 414.4 kB / 393.1 MB, free: 30.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.643e-05/0.2646, allocations: 24.48 kB / 393.1 MB, free: 30.03 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.2647, allocations: 47.06 kB / 393.1 MB, free: 29.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 2.434e-06/0.2647, allocations: 0 / 393.1 MB, free: 29.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=71): time 0.003886/0.2686, allocations: 2.244 MB / 395.4 MB, free: 27.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.784e-05/0.2686, allocations: 56.06 kB / 395.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004636/0.2691, allocations: 0.5028 MB / 395.9 MB, free: 27.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.976e-05/0.2691, allocations: 37.7 kB / 396 MB, free: 27.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001666/0.2693, allocations: 391.5 kB / 396.4 MB, free: 26.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.2694, allocations: 256.3 kB / 396.6 MB, free: 26.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.693e-05/0.2695, allocations: 16 kB / 396.6 MB, free: 26.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.939e-05/0.2696, allocations: 378.8 kB / 397 MB, free: 26.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005268/0.2701, allocations: 317.9 kB / 397.3 MB, free: 25.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000572/0.2707, allocations: 437.1 kB / 397.7 MB, free: 25.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005922/0.2713, allocations: 374.9 kB / 398.1 MB, free: 24.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2713, allocations: 0 / 398.1 MB, free: 24.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001789/0.2731, allocations: 1.06 MB / 399.2 MB, free: 23.81 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.2731, allocations: 7.938 kB / 399.2 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.2731, allocations: 11.95 kB / 399.2 MB, free: 23.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005301/0.2737, allocations: 172.4 kB / 399.3 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000766/0.2744, allocations: 199.8 kB / 399.5 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003098/0.2775, allocations: 2.585 MB / 402.1 MB, free: 20.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006986/0.2783, allocations: 44.05 kB / 402.2 MB, free: 20.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.633e-05/0.2783, allocations: 31.98 kB / 402.2 MB, free: 20.63 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.0003702/0.2787, allocations: 217.7 kB / 402.4 MB, free: 20.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.2788, allocations: 71.19 kB / 402.5 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000141/0.279, allocations: 86.17 kB / 402.6 MB, free: 20.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.279, allocations: 15.98 kB / 402.6 MB, free: 20.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.691e-05/0.279, allocations: 4 kB / 402.6 MB, free: 20.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.279, allocations: 3.984 kB / 402.6 MB, free: 20.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009505/0.28, allocations: 0.8454 MB / 403.4 MB, free: 19.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.28, allocations: 0 / 403.4 MB, free: 19.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007914/0.2808, allocations: 151.8 kB / 403.6 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005529/0.2814, allocations: 188.5 kB / 403.8 MB, free: 19 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.279e-05/0.2814, allocations: 27.98 kB / 403.8 MB, free: 18.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003011/0.2844, allocations: 2.597 MB / 406.4 MB, free: 16.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.2845, allocations: 3.953 kB / 406.4 MB, free: 16.24 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00228/0.2867, allocations: 1.42 MB / 407.8 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001811/0.2869, allocations: 136.2 kB / 407.9 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.687e-05/0.287, allocations: 20 kB / 408 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005702/0.2876, allocations: 59.95 kB / 408 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.2877, allocations: 52.58 kB / 408.1 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-05/0.2878, allocations: 23.98 kB / 408.1 MB, free: 14.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003573/0.2882, allocations: 354.8 kB / 408.4 MB, free: 14.15 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2882, allocations: 0 / 408.4 MB, free: 14.15 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007953/0.289, allocations: 228 kB / 408.7 MB, free: 13.93 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.0002282/0.2892, allocations: 135.2 kB / 408.8 MB, free: 13.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002044/0.2913, allocations: 1.018 MB / 409.8 MB, free: 12.76 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.2913, allocations: 0 / 409.8 MB, free: 12.76 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001188/0.2925, allocations: 0.6475 MB / 410.5 MB, free: 12.1 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008374/0.2933, allocations: 130.4 kB / 410.6 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002894/0.2962, allocations: 2.331 MB / 412.9 MB, free: 9.605 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004197/0.2967, allocations: 0.95 MB / 413.9 MB, free: 8.629 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002407/0.2969, allocations: 67.41 kB / 413.9 MB, free: 8.566 MB / 298.7 MB Notification: Performance of SimCode: time 7.92e-07/0.2969, allocations: 0 / 413.9 MB, free: 8.566 MB / 298.7 MB Notification: Performance of Templates: time 0.01834/0.3153, allocations: 13.49 MB / 427.4 MB, free: 11.08 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/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_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches