Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009283/0.000928, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00118/0.00118, allocations: 192 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.526/1.526, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002487/0.0002488, allocations: 8 kB / 306.8 MB, free: 1.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1064, allocations: 51.5 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.003104/0.1096, allocations: 2.521 MB / 360.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.1109, allocations: 0.7172 MB / 361.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001702/0.1111, allocations: 8 kB / 361.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001482/0.1112, allocations: 35.69 kB / 361.6 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001691/0.1114, allocations: 79.38 kB / 361.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002811/0.1117, allocations: 79.84 kB / 361.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003579/0.112, allocations: 370.5 kB / 362.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002148/0.1123, allocations: 105.6 kB / 362.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000146/0.1124, allocations: 119.5 kB / 362.3 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/0.1126, allocations: 147.3 kB / 362.5 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.309e-05/0.1127, allocations: 20 kB / 362.5 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.969e-05/0.1127, allocations: 16 kB / 362.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.489e-05/0.1128, allocations: 55.7 kB / 362.6 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.416e-05/0.1128, allocations: 77.58 kB / 362.7 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003206/0.1132, allocations: 351.2 kB / 363 MB, free: 9.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.1132, allocations: 0 / 363 MB, free: 9.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.1132, allocations: 0 / 363 MB, free: 9.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.1132, allocations: 0 / 363 MB, free: 9.27 MB / 302.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.001256/0.1145, allocations: 0.6497 MB / 363.6 MB, free: 8.562 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.1145, allocations: 12.03 kB / 363.7 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.493e-05/0.1146, allocations: 58.55 kB / 363.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.984e-05/0.1147, allocations: 31.62 kB / 363.7 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003998/0.1151, allocations: 294.4 kB / 364 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.365e-05/0.1151, allocations: 20.56 kB / 364.1 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.988e-05/0.1152, allocations: 24 kB / 364.1 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000712/0.1159, allocations: 335.6 kB / 364.4 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.1159, allocations: 3.938 kB / 364.4 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.292e-05/0.116, allocations: 15.98 kB / 364.4 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.116, allocations: 8 kB / 364.4 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007884/0.1168, allocations: 314.1 kB / 364.7 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001936/0.1187, allocations: 1.17 MB / 365.9 MB, free: 6.156 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008278/0.1196, allocations: 286.5 kB / 366.2 MB, free: 5.867 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003083/0.1199, allocations: 124.8 kB / 366.3 MB, free: 5.742 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.184e-05/0.1199, allocations: 7.984 kB / 366.3 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004755/0.1204, allocations: 189.9 kB / 366.5 MB, free: 5.527 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.094e-06/0.1204, allocations: 4 kB / 366.5 MB, free: 5.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002174/0.1226, allocations: 0.7371 MB / 367.2 MB, free: 4.758 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.043e-05/0.1227, allocations: 106.8 kB / 367.3 MB, free: 4.629 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003297/0.123, allocations: 282.7 kB / 367.6 MB, free: 4.344 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.354e-05/0.1231, allocations: 29.7 kB / 367.7 MB, free: 4.309 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/0.1232, allocations: 203.5 kB / 367.8 MB, free: 4.105 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.909e-05/0.1233, allocations: 39.45 kB / 367.9 MB, free: 4.066 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.267e-05/0.1233, allocations: 4 kB / 367.9 MB, free: 4.062 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.1234, allocations: 334.8 kB / 368.2 MB, free: 3.727 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003311/0.1237, allocations: 116.6 kB / 368.3 MB, free: 3.609 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000379/0.1241, allocations: 218.7 kB / 368.5 MB, free: 3.355 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003421/0.1245, allocations: 169.5 kB / 368.7 MB, free: 3.184 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1245, allocations: 0 / 368.7 MB, free: 3.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001146/0.1256, allocations: 0.5021 MB / 369.2 MB, free: 2.668 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.632e-05/0.1257, allocations: 29.7 kB / 369.2 MB, free: 2.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.1257, allocations: 4 kB / 369.2 MB, free: 2.629 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003813/0.1261, allocations: 92.86 kB / 369.3 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002036/0.1263, allocations: 55.91 kB / 369.4 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002453/0.1288, allocations: 1.838 MB / 371.2 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003221/0.1291, allocations: 63.7 kB / 371.3 MB, free: 456 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.397e-05/0.1292, allocations: 19.94 kB / 371.3 MB, free: 436 kB / 302.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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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 (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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001973/0.1294, allocations: 153.5 kB / 371.5 MB, free: 276 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.758e-05/0.1294, allocations: 23.72 kB / 371.5 MB, free: 252 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.946e-05/0.1295, allocations: 21.83 kB / 371.5 MB, free: 232 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.1295, allocations: 7.953 kB / 371.5 MB, free: 224 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.1295, allocations: 3.938 kB / 371.5 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.1295, allocations: 0 / 371.5 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.244/0.3735, allocations: 318.4 kB / 371.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/0.3736, allocations: 0.6875 kB / 371.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000282/0.3739, allocations: 28.66 kB / 371.9 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004299/0.3743, allocations: 85.81 kB / 371.9 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.63e-05/0.3744, allocations: 3.719 kB / 371.9 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002219/0.3766, allocations: 1.712 MB / 373.7 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3766, allocations: 3.875 kB / 373.7 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/0.3778, allocations: 401.5 kB / 374.1 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.577e-05/0.3779, allocations: 101.9 kB / 374.2 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.964e-05/0.3779, allocations: 6.344 kB / 374.2 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002524/0.3782, allocations: 44.88 kB / 374.2 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.593e-05/0.3783, allocations: 22.77 kB / 374.2 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-05/0.3783, allocations: 3.5 kB / 374.2 MB, free: 18.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002472/0.3786, allocations: 201.9 kB / 374.4 MB, free: 18.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3786, allocations: 0.9062 kB / 374.4 MB, free: 18.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004926/0.3791, allocations: 84.09 kB / 374.5 MB, free: 18.12 MB / 302.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 (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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001354/0.3804, allocations: 0.9392 MB / 375.4 MB, free: 17.51 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001119/0.3816, allocations: 464 kB / 375.9 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3816, allocations: 0.5625 kB / 375.9 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005005/0.3821, allocations: 248.5 kB / 376.1 MB, free: 17.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000377/0.3825, allocations: 48.48 kB / 376.2 MB, free: 17.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003836/0.3863, allocations: 1.804 MB / 378 MB, free: 16.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002221/0.3866, allocations: 0.7606 MB / 378.8 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001358/0.3867, allocations: 25.81 kB / 378.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.3868, allocations: 78.02 kB / 378.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3868, allocations: 4 kB / 378.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02111/0.408, allocations: 6.089 MB / 384.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001735/0.4082, allocations: 235.1 kB / 385.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.986/2.394, allocations: 1.312 kB / 385.2 MB, free: 14.59 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat does not exist to compare? outputFormat=mat