Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00188/0.00188, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001625/0.001625, allocations: 207.3 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 230.5 MB / 257.4 MB, free: 7.75 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002058/0.002058, allocations: 63.91 kB / 377.8 MB, free: 2.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.2691, allocations: 53.4 MB / 431.2 MB, free: 6.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.00475/0.2739, allocations: 3.133 MB / 434.3 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001546/0.2754, allocations: 0.8182 MB / 435.1 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001859/0.2756, allocations: 7.938 kB / 435.1 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002003/0.2758, allocations: 67.3 kB / 435.2 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002433/0.276, allocations: 127 kB / 435.3 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000367/0.2764, allocations: 135.8 kB / 435.5 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005222/0.2769, allocations: 0.4902 MB / 435.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002526/0.2772, allocations: 119 kB / 436.1 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000287/0.2775, allocations: 199.3 kB / 436.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002411/0.2777, allocations: 171.1 kB / 436.4 MB, free: 1.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.009e-05/0.2778, allocations: 48 kB / 436.5 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/0.2779, allocations: 56 kB / 436.5 MB, free: 1.059 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.703e-05/0.278, allocations: 103.6 kB / 436.6 MB, free: 0.957 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001807/0.2781, allocations: 191.1 kB / 436.8 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006283/0.2788, allocations: 0.5798 MB / 437.4 MB, free: 192 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2788, allocations: 4 kB / 437.4 MB, free: 188 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2788, allocations: 0 / 437.4 MB, free: 188 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.2788, allocations: 0 / 437.4 MB, free: 188 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.00108/0.2799, allocations: 0.6223 MB / 438 MB, free: 15.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.2799, allocations: 11.98 kB / 438 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.052e-05/0.28, allocations: 78.7 kB / 438.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002112/0.2802, allocations: 56.66 kB / 438.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004725/0.2807, allocations: 276.8 kB / 438.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.503e-05/0.2807, allocations: 25.38 kB / 438.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.629e-05/0.2808, allocations: 35.94 kB / 438.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006673/0.2814, allocations: 475 kB / 439 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.2814, allocations: 0 / 439 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.508e-05/0.2815, allocations: 16 kB / 439 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.2815, allocations: 8 kB / 439 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005043/0.282, allocations: 275.9 kB / 439.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002248/0.2842, allocations: 1.239 MB / 440.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005011/0.2847, allocations: 186.8 kB / 440.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.2849, allocations: 72.83 kB / 440.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.515e-05/0.2849, allocations: 4 kB / 440.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.989e-05/0.285, allocations: 38.55 kB / 440.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.333e-06/0.285, allocations: 0 / 440.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.00158/0.2866, allocations: 465.7 kB / 441.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.569e-05/0.2866, allocations: 63.34 kB / 441.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004691/0.2871, allocations: 320.5 kB / 441.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.336e-05/0.2871, allocations: 25.7 kB / 441.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002135/0.2873, allocations: 236.2 kB / 441.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.113e-05/0.2874, allocations: 59.48 kB / 441.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.2875, allocations: 53.66 kB / 442 MB, free: 11.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000209/0.2877, allocations: 338.8 kB / 442.3 MB, free: 11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001755/0.2879, allocations: 71.97 kB / 442.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002232/0.2881, allocations: 144.5 kB / 442.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003815/0.2885, allocations: 223.3 kB / 442.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.2885, allocations: 0 / 442.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000789/0.2893, allocations: 362.6 kB / 443.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.2893, allocations: 8 kB / 443.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.2893, allocations: 0 / 443.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004897/0.2898, allocations: 121.8 kB / 443.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.29, allocations: 39.86 kB / 443.3 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003663/0.2937, allocations: 3.238 MB / 446.5 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002753/0.2939, allocations: 31.84 kB / 446.5 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.304e-05/0.2939, allocations: 12 kB / 446.5 MB, free: 6.453 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (feedback.opAmp.satNeg,feedback.opAmp.satPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002951/0.2942, allocations: 154.7 kB / 446.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.273e-05/0.2943, allocations: 35.81 kB / 446.7 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.961e-05/0.2944, allocations: 34.25 kB / 446.8 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.2944, allocations: 3.984 kB / 446.8 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.2944, allocations: 0 / 446.8 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.2944, allocations: 0 / 446.8 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004891/0.2949, allocations: 316.5 kB / 447.1 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.2949, allocations: 0 / 447.1 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.766e-05/0.295, allocations: 15.98 kB / 447.1 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004032/0.2954, allocations: 101.9 kB / 447.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.828e-05/0.2954, allocations: 4 kB / 447.2 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003575/0.299, allocations: 3.242 MB / 450.4 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.299, allocations: 0 / 450.4 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000707/0.2997, allocations: 379.5 kB / 450.8 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.921e-05/0.2998, allocations: 35.73 kB / 450.8 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.303e-05/0.2998, allocations: 4.062 kB / 450.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000216/0.3, allocations: 28.05 kB / 450.9 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.067e-05/0.3001, allocations: 23.89 kB / 450.9 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.3001, allocations: 8 kB / 450.9 MB, free: 1.777 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00025/0.3004, allocations: 223.1 kB / 451.1 MB, free: 1.559 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3004, allocations: 0 / 451.1 MB, free: 1.559 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005205/0.3009, allocations: 103.8 kB / 451.2 MB, free: 1.457 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (feedback.opAmp.satPos,feedback.opAmp.satNeg) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009834/0.3019, allocations: 0.9203 MB / 452.1 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007499/0.3026, allocations: 437.4 kB / 452.6 MB, free: 56 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.441e-06/0.3026, allocations: 4 kB / 452.6 MB, free: 52 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004388/0.3031, allocations: 341.2 kB / 452.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004075/0.3035, allocations: 51.44 kB / 453 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004401/0.3079, allocations: 3.148 MB / 456.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001973/0.3081, allocations: 181.4 kB / 456.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001171/0.3082, allocations: 31.19 kB / 456.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/0.3083, allocations: 103.4 kB / 456.4 MB, free: 12.01 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3083, allocations: 0 / 456.4 MB, free: 12.01 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03976/0.3481, allocations: 8.145 MB / 464.6 MB, free: 4.027 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.02, allocations: 23.97 kB / 464.6 MB, free: 4.004 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable vOut.v in file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv. Warning: Get data of variable vOut.v from file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.464613800868392]