Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 102.6 kB / 17.72 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 187.1 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.573/1.573, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001797/0.001797, allocations: 55.92 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1448, allocations: 46.62 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.005613/0.1505, allocations: 3.191 MB / 377.8 MB, free: 1.887 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002303/0.1528, allocations: 0.9942 MB / 378.8 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004195/0.1533, allocations: 8 kB / 378.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000321/0.1536, allocations: 63.36 kB / 378.9 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006481/0.1543, allocations: 123 kB / 379 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005566/0.1549, allocations: 143.6 kB / 379.2 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007511/0.1556, allocations: 493.8 kB / 379.6 MB, free: 64 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3089/0.4646, allocations: 126.1 kB / 379.8 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007229/0.4654, allocations: 187.4 kB / 380 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003552/0.4657, allocations: 210.9 kB / 380.2 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.539e-05/0.4658, allocations: 43.78 kB / 380.2 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000263/0.4661, allocations: 74.34 kB / 380.3 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.125e-05/0.4662, allocations: 95.08 kB / 380.4 MB, free: 9.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002038/0.4664, allocations: 212 kB / 380.6 MB, free: 9.176 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006391/0.467, allocations: 0.4959 MB / 381.1 MB, free: 9.105 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.4671, allocations: 0 / 381.1 MB, free: 9.105 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.4671, allocations: 2.766 kB / 381.1 MB, free: 9.105 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.301e-05/0.4671, allocations: 1.375 kB / 381.1 MB, free: 9.105 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001273/0.4684, allocations: 0.7339 MB / 381.8 MB, free: 8.613 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.4684, allocations: 9.625 kB / 381.8 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.019e-05/0.4685, allocations: 67.41 kB / 381.9 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.166e-05/0.4686, allocations: 51.48 kB / 381.9 MB, free: 8.551 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005583/0.4692, allocations: 314.9 kB / 382.2 MB, free: 8.316 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.72e-05/0.4692, allocations: 23.59 kB / 382.3 MB, free: 8.316 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.4693, allocations: 35.47 kB / 382.3 MB, free: 8.316 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009107/0.4703, allocations: 350.4 kB / 382.6 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.4703, allocations: 0 / 382.6 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.427e-05/0.4703, allocations: 15.16 kB / 382.7 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.262e-05/0.4704, allocations: 10.41 kB / 382.7 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006745/0.4711, allocations: 236.6 kB / 382.9 MB, free: 8.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001907/0.473, allocations: 1.172 MB / 384.1 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006632/0.4736, allocations: 277.3 kB / 384.3 MB, free: 7.758 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005215/0.4742, allocations: 212.7 kB / 384.5 MB, free: 7.746 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005399/0.4747, allocations: 1.12 MB / 385.7 MB, free: 6.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.861e-05/0.4748, allocations: 31.98 kB / 385.7 MB, free: 6.391 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 1.733e-06/0.4748, allocations: 1.469 kB / 385.7 MB, free: 6.391 MB / 318.1 MB Notification: Performance of matching and sorting (n=27): time 0.001403/0.4762, allocations: 0.5335 MB / 386.2 MB, free: 6.223 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.4762, allocations: 80.36 kB / 386.3 MB, free: 6.129 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004563/0.4767, allocations: 339.1 kB / 386.6 MB, free: 5.977 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.4767, allocations: 35.45 kB / 386.7 MB, free: 5.938 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.4769, allocations: 213.9 kB / 386.9 MB, free: 5.762 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.401e-05/0.477, allocations: 104.2 kB / 387 MB, free: 5.684 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.4771, allocations: 70.36 kB / 387.1 MB, free: 5.637 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.4772, allocations: 350.3 kB / 387.4 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002493/0.4774, allocations: 102.1 kB / 387.5 MB, free: 5.273 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003168/0.4778, allocations: 188.4 kB / 387.7 MB, free: 5.145 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005346/0.4783, allocations: 286.7 kB / 388 MB, free: 4.98 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.4783, allocations: 0.875 kB / 388 MB, free: 4.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008907/0.4792, allocations: 436.6 kB / 388.4 MB, free: 4.801 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.4792, allocations: 4.75 kB / 388.4 MB, free: 4.801 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.4793, allocations: 5.75 kB / 388.4 MB, free: 4.801 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003152/0.4796, allocations: 69.86 kB / 388.5 MB, free: 4.777 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003435/0.4799, allocations: 76.09 kB / 388.5 MB, free: 4.777 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001713/0.4817, allocations: 1.961 MB / 390.5 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000271/0.482, allocations: 46.97 kB / 390.5 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.124e-05/0.482, allocations: 19.55 kB / 390.6 MB, free: 2.996 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (37): * Single equations (assignments): 36 * 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 {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001609/0.4822, allocations: 154.3 kB / 390.7 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.946e-05/0.4822, allocations: 32.09 kB / 390.7 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006774/0.4829, allocations: 333 kB / 391.1 MB, free: 2.688 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.4829, allocations: 3.109 kB / 391.1 MB, free: 2.688 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.4829, allocations: 8.5 kB / 391.1 MB, free: 2.684 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.483, allocations: 1.312 kB / 391.1 MB, free: 2.684 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004419/0.4834, allocations: 393.6 kB / 391.5 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4834, allocations: 0 / 391.5 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000324/0.4837, allocations: 54.19 kB / 391.5 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001836/0.4839, allocations: 63.67 kB / 391.6 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.57e-05/0.484, allocations: 9.281 kB / 391.6 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002914/0.4843, allocations: 0.6015 MB / 392.2 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.4843, allocations: 1.781 kB / 392.2 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000926/0.4852, allocations: 0.5263 MB / 392.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.4854, allocations: 135.7 kB / 392.9 MB, free: 1.402 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.522e-05/0.4854, allocations: 6.766 kB / 392.9 MB, free: 1.398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002553/0.4857, allocations: 20.7 kB / 392.9 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.415e-05/0.4857, allocations: 20.02 kB / 392.9 MB, free: 1.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.276e-05/0.4858, allocations: 11.36 kB / 392.9 MB, free: 1.387 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002584/0.486, allocations: 238.5 kB / 393.1 MB, free: 1.258 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.486, allocations: 0 / 393.1 MB, free: 1.258 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004755/0.4865, allocations: 115.5 kB / 393.3 MB, free: 1.23 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (opAmp.v_in,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.q_fp1,opAmp.v_source,opAmp.x) * 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 (20): * Single equations (assignments): 19 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001128/0.4877, allocations: 1.086 MB / 394.3 MB, free: 416 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007888/0.4885, allocations: 416.5 kB / 394.8 MB, free: 208 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.4885, allocations: 0 / 394.8 MB, free: 208 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003398/0.4888, allocations: 141.6 kB / 394.9 MB, free: 172 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003644/0.4892, allocations: 47.16 kB / 394.9 MB, free: 144 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005108/0.4943, allocations: 3.746 MB / 398.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003954/0.4947, allocations: 0.7906 MB / 399.5 MB, free: 13.13 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001677/0.4949, allocations: 38.61 kB / 399.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001841/0.4951, allocations: 126.2 kB / 399.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4951, allocations: 0 / 399.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0646/0.5597, allocations: 7.893 MB / 407.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.86/14.42, allocations: 6.094 kB / 407.5 MB, free: 10.34 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed_fmu --startTime=0 --stopTime=0.003 --timeout=50 --tolerance=2e-07 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1)