Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001438/0.001438, allocations: 206.3 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.399/1.399, allocations: 230.6 MB / 257.5 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 43.94 kB / 377.8 MB, free: 2.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2834, allocations: 53.35 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004293/0.2877, allocations: 2.763 MB / 433.9 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001387/0.2891, allocations: 0.7246 MB / 434.6 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001453/0.2892, allocations: 7.938 kB / 434.6 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.2894, allocations: 47.56 kB / 434.6 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000205/0.2896, allocations: 103.1 kB / 434.7 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003146/0.2899, allocations: 131.8 kB / 434.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005071/0.2904, allocations: 410.5 kB / 435.3 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002172/0.2906, allocations: 105.2 kB / 435.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002125/0.2908, allocations: 159.4 kB / 435.5 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002389/0.2911, allocations: 167.3 kB / 435.7 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.041e-05/0.2911, allocations: 40 kB / 435.7 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.354e-05/0.2912, allocations: 40 kB / 435.8 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.165e-05/0.2913, allocations: 83.69 kB / 435.9 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001602/0.2914, allocations: 143.4 kB / 436 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004917/0.2919, allocations: 458.3 kB / 436.4 MB, free: 1.277 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2919, allocations: 0 / 436.4 MB, free: 1.277 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2919, allocations: 0 / 436.4 MB, free: 1.277 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.292, allocations: 0 / 436.4 MB, free: 1.277 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001291/0.2932, allocations: 0.6169 MB / 437.1 MB, free: 0.625 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.2933, allocations: 8.031 kB / 437.1 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.66e-05/0.2934, allocations: 62.73 kB / 437.1 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.228e-05/0.2934, allocations: 40.7 kB / 437.2 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004576/0.2939, allocations: 241.9 kB / 437.4 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.939e-05/0.2939, allocations: 24.86 kB / 437.4 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.316e-05/0.294, allocations: 24.38 kB / 437.5 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007913/0.2947, allocations: 382.2 kB / 437.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.2948, allocations: 0 / 437.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.367e-05/0.2948, allocations: 12 kB / 437.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.2948, allocations: 4 kB / 437.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008103/0.2956, allocations: 293.7 kB / 438.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001878/0.2975, allocations: 1.022 MB / 439.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008297/0.2983, allocations: 238.5 kB / 439.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003268/0.2987, allocations: 104.8 kB / 439.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.2987, allocations: 0 / 439.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005284/0.2992, allocations: 229.3 kB / 439.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.443e-06/0.2992, allocations: 0 / 439.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.002369/0.3016, allocations: 0.5838 MB / 440.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.195e-05/0.3017, allocations: 110.8 kB / 440.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003425/0.302, allocations: 289.8 kB / 440.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/0.302, allocations: 29.7 kB / 440.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/0.3022, allocations: 204 kB / 440.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.295e-05/0.3022, allocations: 39.67 kB / 441 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.3023, allocations: 65.88 kB / 441 MB, free: 12.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.3025, allocations: 326.8 kB / 441.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003723/0.3029, allocations: 138.1 kB / 441.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004838/0.3034, allocations: 282 kB / 441.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000732/0.3041, allocations: 311.7 kB / 442.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.3041, allocations: 0 / 442.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001291/0.3054, allocations: 0.4961 MB / 442.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.383e-05/0.3054, allocations: 41.62 kB / 442.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.3054, allocations: 4 kB / 442.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003838/0.3058, allocations: 88.8 kB / 442.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002118/0.306, allocations: 44.19 kB / 442.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002722/0.3087, allocations: 1.883 MB / 444.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003396/0.3091, allocations: 63.67 kB / 444.7 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.496e-05/0.3091, allocations: 11.94 kB / 444.7 MB, free: 8.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001713/0.3093, allocations: 149.8 kB / 444.8 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.138e-05/0.3093, allocations: 23.86 kB / 444.9 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.56e-05/0.3094, allocations: 29.77 kB / 444.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.3094, allocations: 0 / 444.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.3094, allocations: 0 / 444.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.3094, allocations: 0 / 444.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003/0.3097, allocations: 264.5 kB / 445.1 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3097, allocations: 0 / 445.1 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001444/0.3098, allocations: 27.97 kB / 445.2 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002815/0.3101, allocations: 80.8 kB / 445.2 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.3101, allocations: 0 / 445.2 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002372/0.3125, allocations: 1.709 MB / 447 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3125, allocations: 0 / 447 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.3136, allocations: 363.8 kB / 447.3 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.771e-05/0.3137, allocations: 31.78 kB / 447.3 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.764e-05/0.3137, allocations: 0 / 447.3 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002508/0.3139, allocations: 39.95 kB / 447.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.864e-05/0.314, allocations: 19.97 kB / 447.4 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.673e-05/0.314, allocations: 7.938 kB / 447.4 MB, free: 5.578 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002205/0.3143, allocations: 201.2 kB / 447.6 MB, free: 5.383 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3143, allocations: 0 / 447.6 MB, free: 5.383 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003897/0.3146, allocations: 79.84 kB / 447.7 MB, free: 5.305 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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001455/0.3161, allocations: 0.9058 MB / 448.6 MB, free: 4.363 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001052/0.3171, allocations: 447.6 kB / 449 MB, free: 3.895 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3171, allocations: 0 / 449 MB, free: 3.895 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005161/0.3177, allocations: 246 kB / 449.3 MB, free: 3.645 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003522/0.318, allocations: 53.08 kB / 449.3 MB, free: 3.598 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005635/0.3237, allocations: 3.223 MB / 452.5 MB, free: 208 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001572/0.3238, allocations: 150.9 kB / 452.7 MB, free: 36 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001276/0.3239, allocations: 30.27 kB / 452.7 MB, free: 4 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001648/0.3241, allocations: 83.48 kB / 452.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3241, allocations: 0 / 452.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04065/0.3648, allocations: 7.627 MB / 460.4 MB, free: 8.484 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.54, allocations: 0 / 460.4 MB, free: 8.484 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.854688213992631]